Class: Bog::Command::Init

Inherits:
Object
  • Object
show all
Defined in:
lib/bog/command/init.rb

Class Method Summary collapse

Class Method Details

.execute(profile, options) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/bog/command/init.rb', line 7

def self.execute(profile, options)
  create_skel
  # FIXME: make use of profile.path instead; get passed a Profile object
  profile_path = File.join(File.expand_path('~/.bog'), 'profiles', profile.to_s)
  Dir.mkdir(profile_path) unless File.directory?(profile_path)

  Bog::Initializer::AWS.new(Bog::Profile.find(profile), options) if options.aws?

end