Class: Sambot::CLI

Inherits:
BaseCommand show all
Defined in:
lib/sambot/cli.rb

Instance Method Summary collapse

Methods inherited from Thor

command_help

Instance Method Details

#buildObject



40
# File 'lib/sambot/cli.rb', line 40

def build; execute { Sambot::Tasks::Build.new.run(options) } end

#bumpObject



33
# File 'lib/sambot/cli.rb', line 33

def bump; execute { Chef::Cookbook.bump } end

#checkout(organization, dir) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/sambot/cli.rb', line 9

def checkout(organization, dir)
  execute do
    Dir.chdir(dir) do
      SourceControl.checkout(organization)
    end
  end
end

#cleanObject



18
# File 'lib/sambot/cli.rb', line 18

def clean; execute { Chef::Cookbook.clean } end

#createObject



43
# File 'lib/sambot/cli.rb', line 43

def create; execute { Sambot::Tasks::Create.new.run(options) } end

#downObject



24
# File 'lib/sambot/cli.rb', line 24

def down; execute { Sambot::Tasks::Down.new.run(options) } end

#populateObject



30
# File 'lib/sambot/cli.rb', line 30

def populate; execute { Sambot::Tasks::Populate.new.run(options)  } end

#testObject



27
# File 'lib/sambot/cli.rb', line 27

def test; execute { Sambot::Tasks::Test.new.run(options) } end

#upObject



21
# File 'lib/sambot/cli.rb', line 21

def up; execute { Sambot::Tasks::Up.new.run(options) } end

#verifyObject



49
# File 'lib/sambot/cli.rb', line 49

def verify; execute { Sambot::Tasks::Verify.new.run(options) } end

#versionObject



46
# File 'lib/sambot/cli.rb', line 46

def version; execute { Sambot::Tasks::Version.new.run(options) } end