Class: Bog::Command::Exec
- Inherits:
-
Object
- Object
- Bog::Command::Exec
- Defined in:
- lib/bog/command/exec.rb
Class Method Summary collapse
Class Method Details
.execute(profile, options) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/bog/command/exec.rb', line 6 def self.execute(profile, ) old_profile = Bog::Profile.current Bog::Profile.switch_to(profile.profile_name) system("#{options[:commands]} 2>&1") Bog::Profile.switch_to(old_profile.profile_name) end |