Class: Vpsb::Tasks::Node
- Includes:
- AskSupport
- Defined in:
- lib/vpsb/tasks/node.rb
Constant Summary collapse
- PATH =
'bootstrap_server_app_in_do/nodes/'
Instance Attribute Summary
Attributes inherited from BaseTask
Instance Method Summary collapse
Methods included from AskSupport
#ask, #ask_loop, #ask_to_confirm
Methods inherited from BaseTask
Constructor Details
This class inherits a constructor from Vpsb::BaseTask
Instance Method Details
#call ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/vpsb/tasks/node.rb', line 10 def call prepare # ip = ask_loop(proc {|r| process(r)}) do # p "What is server ip address (example: 1.23.44.11)?" # end ip = core.get(:do_host_ip) Vpsb::Helpers::FileReplace.replace_json("#{PATH}#{ip}.json",core.get(:node_json)) end |