Class: Bog::Command::Default

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

Class Method Summary collapse

Class Method Details

.execute(profile, options = {}) ⇒ Object



6
7
8
9
10
11
# File 'lib/bog/command/default.rb', line 6

def self.execute(profile,options={})
  old_profile = Bog::Profile.current
  Bog::Profile.switch_to(profile.profile_name)
  Bog::Profile.current.make_default
  Bog::Profile.switch_to(old_profile.profile_name)
end