Class: Bog::Command::Init
- Inherits:
-
Object
- Object
- Bog::Command::Init
- 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, ) create_skel # FIXME: make use of profile.path instead; get passed a Profile object profile_path = File.join(File.('~/.bog'), 'profiles', profile.to_s) Dir.mkdir(profile_path) unless File.directory?(profile_path) Bog::Initializer::AWS.new(Bog::Profile.find(profile), ) if .aws? end |