Class: VagrantPlugins::Triggers::Config::Provisioner
- Inherits:
-
Object
- Object
- VagrantPlugins::Triggers::Config::Provisioner
- Defined in:
- lib/vagrant-triggers/config/provisioner.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#trigger_body ⇒ Object
readonly
Returns the value of attribute trigger_body.
Instance Method Summary collapse
- #fire(&block) ⇒ Object
-
#initialize ⇒ Provisioner
constructor
A new instance of Provisioner.
- #set_options(options) ⇒ Object
Constructor Details
#initialize ⇒ Provisioner
Returns a new instance of Provisioner.
8 9 10 11 12 13 14 |
# File 'lib/vagrant-triggers/config/provisioner.rb', line 8 def initialize @options = { :good_exit => [0], :stderr => true, :stdout => true } end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/vagrant-triggers/config/provisioner.rb', line 5 def @options end |
#trigger_body ⇒ Object (readonly)
Returns the value of attribute trigger_body.
6 7 8 |
# File 'lib/vagrant-triggers/config/provisioner.rb', line 6 def trigger_body @trigger_body end |
Instance Method Details
#fire(&block) ⇒ Object
16 17 18 |
# File 'lib/vagrant-triggers/config/provisioner.rb', line 16 def fire(&block) @trigger_body = block end |
#set_options(options) ⇒ Object
20 21 22 |
# File 'lib/vagrant-triggers/config/provisioner.rb', line 20 def () @options.merge!() end |