Class: Eh::Proxy::Settings::Git
- Inherits:
-
Object
- Object
- Eh::Proxy::Settings::Git
- Defined in:
- lib/eh/proxy/settings/git.rb
Instance Method Summary collapse
-
#initialize(stage, verbose = true) ⇒ Git
constructor
A new instance of Git.
- #set(value) ⇒ Object
- #unset ⇒ Object
Constructor Details
#initialize(stage, verbose = true) ⇒ Git
Returns a new instance of Git.
3 4 5 6 |
# File 'lib/eh/proxy/settings/git.rb', line 3 def initialize(stage, verbose = true) @stage = stage @verbose = verbose end |
Instance Method Details
#set(value) ⇒ Object
8 9 10 11 12 |
# File 'lib/eh/proxy/settings/git.rb', line 8 def set(value) Deployer::Executor.new(stage, verbose: verbose?) do |executor| executor.execute(set_command(value), abort_on_error: false) end end |
#unset ⇒ Object
14 15 16 17 18 |
# File 'lib/eh/proxy/settings/git.rb', line 14 def unset Deployer::Executor.new(stage, verbose: verbose?) do |executor| executor.execute(unset_command, abort_on_error: false) end end |