Class: TestbotCloud::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/cli.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



10
11
12
# File 'lib/cli.rb', line 10

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#new(name) ⇒ Object



15
16
17
18
19
# File 'lib/cli.rb', line 15

def new(name)
  copy_file "config.yml", "#{name}/config.yml"
  copy_file "gitignore", "#{name}/.gitignore"
  copy_file "runner.sh", "#{name}/bootstrap/runner.sh"
end

#startObject



22
23
24
# File 'lib/cli.rb', line 22

def start
  Cluster.new.start
end

#stopObject



27
28
29
# File 'lib/cli.rb', line 27

def stop
  Cluster.new.stop
end

#versionObject



32
33
34
# File 'lib/cli.rb', line 32

def version
  puts "TestbotCloud #{TestbotCloud::VERSION}"
end