Class: Intent::Verbs::Install
- Inherits:
-
Object
- Object
- Intent::Verbs::Install
- Defined in:
- lib/intent/verbs/install.rb
Instance Attribute Summary collapse
-
#documents ⇒ Object
readonly
Returns the value of attribute documents.
Instance Method Summary collapse
-
#initialize(documents) ⇒ Install
constructor
A new instance of Install.
- #run ⇒ Object
Constructor Details
#initialize(documents) ⇒ Install
Returns a new instance of Install.
6 7 8 |
# File 'lib/intent/verbs/install.rb', line 6 def initialize(documents) @documents = documents end |
Instance Attribute Details
#documents ⇒ Object (readonly)
Returns the value of attribute documents.
4 5 6 |
# File 'lib/intent/verbs/install.rb', line 4 def documents @documents end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/intent/verbs/install.rb', line 10 def run # Preprequisite checks # return env_not_detected! unless @documents.env_detected? # return already_installed! if @documents.install_detected? end |