class Tinet::CLI
Public Instance Methods
build()
click to toggle source
# File lib/tinet/cli.rb, line 73 def build return version if options[:version] Tinet::Command::Build.new(options).run end
conf()
click to toggle source
# File lib/tinet/cli.rb, line 82 def conf return version if options[:version] Tinet::Command::Conf.new(options).run end
down()
click to toggle source
# File lib/tinet/cli.rb, line 46 def down return version if options[:version] Tinet::Command::Down.new(options).run end
exec(node, command)
click to toggle source
# File lib/tinet/cli.rb, line 64 def exec(node, command) return version if options[:version] Tinet::Command::Exec.new(options).run(node, command) end
help(command = nil, subcommand = false)
click to toggle source
@note Override {Thor#help}
Calls superclass method
# File lib/tinet/cli.rb, line 103 def help(command = nil, subcommand = false) if command.nil? puts <<-USAGE Usage: tinet [OPTIONS] COMMAND Options: -f, [--specfile=SPECFILE] # Specify specification YAML file (Default: ./spec.yml) -d, [--dry-run] # Print the recipes that are needed to execute -v, [--version] # Show the TINET version information USAGE end super end
init()
click to toggle source
# File lib/tinet/cli.rb, line 18 def init return version if options[:version] Tinet::Command::Init.new.run end
ps()
click to toggle source
# File lib/tinet/cli.rb, line 27 def ps return version if options[:version] Tinet::Command::Ps.new(options).run end
pull()
click to toggle source
# File lib/tinet/cli.rb, line 55 def pull return version if options[:version] Tinet::Command::Pull.new(options).run end
restart()
click to toggle source
# File lib/tinet/cli.rb, line 91 def restart return version if options[:version] Tinet::Command::Down.new(options).run Tinet::Command::Up.new(options).run end
up()
click to toggle source
# File lib/tinet/cli.rb, line 36 def up return version if options[:version] Tinet::Command::Up.new(options).run Tinet::Command::Conf.new(options).run end
version()
click to toggle source
# File lib/tinet/cli.rb, line 98 def version puts "TINET version: #{Tinet::VERSION}" end