Class: Awsom::SaltBootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/awsom/salt_bootstrap.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, ip:, template:) ⇒ SaltBootstrap

Returns a new instance of SaltBootstrap.



10
11
12
13
14
15
# File 'lib/awsom/salt_bootstrap.rb', line 10

def initialize(name, ip:, template:)
  @name = name
  @ip = ip
  @template = template
  validate!
end

Instance Method Details

#runObject



17
18
19
20
21
# File 'lib/awsom/salt_bootstrap.rb', line 17

def run
  copy_bootstrap_data
  puts "running bootstrap.sh"
  run_bootstrap_sh
end