Class: VPS::CLI
- Inherits:
-
Thor
show all
- Defined in:
- lib/vps/cli.rb,
lib/vps/cli/domain.rb,
lib/vps/cli/service.rb,
lib/vps/cli/playbook.rb,
lib/vps/cli/upstream.rb,
lib/vps/cli/playbook/state.rb,
lib/vps/cli/playbook/tasks.rb
Defined Under Namespace
Classes: Domain, Error, Playbook, Service, Upstream
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *_args) ⇒ Object
57
58
59
|
# File 'lib/vps/cli.rb', line 57
def method_missing(method, *_args)
raise Error, "Unrecognized command \"#{method}\". Please consult `vps help`."
end
|
Instance Method Details
#edit(host = nil) ⇒ Object
41
42
43
|
# File 'lib/vps/cli.rb', line 41
def edit(host = nil)
`#{ENV["EDITOR"]} #{VPS.config_path(host, "")}`
end
|
#version ⇒ Object
51
52
53
|
# File 'lib/vps/cli.rb', line 51
def version
puts "vps #{VPS::VERSION}"
end
|