Remove the implemented command binaries
This commit is contained in:
parent
b3277e015f
commit
dc35ce0980
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "destroys the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Destroys the vagrant environment.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:destroy)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,28 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "forcibly halts the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Forcibly halts the vagrant environment. This is the equivalent
|
|
||||||
of pulling the power on your computer.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:halt)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "initializes directory for vagrant use"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Creates the initial files required for using vagrant.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.init(command.argv[0])
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,30 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "package the current vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Package the current vagrant environment into a box.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
opt :base, "name of the VM to create a base package", :type => :string
|
|
||||||
opt :include, "files to include in the package", :type => :strings
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:package, command.argv[0], command.opts)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "reload the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Reloads the vagrant environment. This forces a shutdown of the VM,
|
|
||||||
updates the metadata (forwarded ports, shared folders, etc.), restarts
|
|
||||||
the VM, and reruns the chef recipes.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:reload)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "resumes the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Resumes the vagrant environment.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:resume)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "opens an SSH connection into the VM"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Opens an SSH connection into the created VM.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:ssh)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,30 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "outputs .ssh/config valid syntax for connecting to this environment via ssh"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Outputs a .ssh/config valid entry for connecting (via SCP, git, etc.)
|
|
||||||
to the current environment.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
opt :host, "the host key for the entry", :type => :string
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:ssh_config, command.opts)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,27 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "suspends the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Suspends the vagrant environment.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:suspend)
|
|
||||||
end
|
|
||||||
end
|
|
|
@ -1,29 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
begin
|
|
||||||
require File.expand_path('../../.bundle/environment', __FILE__)
|
|
||||||
rescue LoadError
|
|
||||||
# Fallback on rubygems
|
|
||||||
require "rubygems"
|
|
||||||
end
|
|
||||||
|
|
||||||
require 'git-style-binary/command'
|
|
||||||
|
|
||||||
# Get library
|
|
||||||
libdir = File.join(File.dirname(__FILE__), '..', 'lib')
|
|
||||||
require File.expand_path('vagrant', libdir)
|
|
||||||
|
|
||||||
GitStyleBinary.command do
|
|
||||||
short_desc "create the vagrant environment"
|
|
||||||
banner <<-EOS
|
|
||||||
Usage: #{command.full_name} #{all_options_string}
|
|
||||||
|
|
||||||
Create the vagrant environment if it doesn't exist,
|
|
||||||
otherwise start the vagrant environment if its not
|
|
||||||
already running.
|
|
||||||
|
|
||||||
EOS
|
|
||||||
|
|
||||||
run do |command|
|
|
||||||
Vagrant::Commands.execute(:up)
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
Reference in New Issue