Class: Static::CLI
- Inherits:
-
VMC::CLI
- Object
- VMC::CLI
- Static::CLI
- Defined in:
- lib/static/cli.rb
Instance Method Summary collapse
- #default_action ⇒ Object
-
#initialize(command = nil, input = nil) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize(command = nil, input = nil) ⇒ CLI
Returns a new instance of CLI.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/static/cli.rb', line 21 def initialize(command = nil, input = nil) config = File.(VMC::CONFIG_DIR) if not File.exist? config target = sane_target_url("http://api.static.me") ensure_config_dir File.open(File.(VMC::TARGET_FILE), "w") do |f| f.write(sane_target_url(target)) end info = target_info(client_target) save_target_info(info) end super @@commands.delete(:register) end |