Class: TerminalVelocity::Templates::Runner
- Inherits:
-
Object
- Object
- TerminalVelocity::Templates::Runner
- Defined in:
- lib/terminal_velocity/templates.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(users_at_hostnames) ⇒ Runner
constructor
A new instance of Runner.
- #options ⇒ Object
- #run ⇒ Object
Constructor Details
#initialize(users_at_hostnames) ⇒ Runner
Returns a new instance of Runner.
12 13 14 |
# File 'lib/terminal_velocity/templates.rb', line 12 def initialize(users_at_hostnames) @users_at_hostnames = users_at_hostnames end |
Class Method Details
.run(username, hostnames, custom_options = { }) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/terminal_velocity/templates.rb', line 4 def self.run(username, hostnames, = { }) users_at_hostnames = hostnames.map { |hostname| "#{username}@#{hostname}" } runner = new(users_at_hostnames) runner..merge!() runner.run end |
Instance Method Details
#options ⇒ Object
21 22 23 |
# File 'lib/terminal_velocity/templates.rb', line 21 def @options ||= { :term_theme => "Pro", :current_window => false} end |
#run ⇒ Object
16 17 18 19 |
# File 'lib/terminal_velocity/templates.rb', line 16 def run generate_script launch end |