Class: Catfish::CLI::Plugin
- Inherits:
-
Object
- Object
- Catfish::CLI::Plugin
- Defined in:
- lib/catfish/cli/plugin.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Plugin
constructor
A new instance of Plugin.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Plugin
Returns a new instance of Plugin.
5 6 7 |
# File 'lib/catfish/cli/plugin.rb', line 5 def initialize() = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/catfish/cli/plugin.rb', line 3 def end |
Instance Method Details
#run ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/catfish/cli/plugin.rb', line 9 def run puts 'Installing plugins' builder = Dsl.new builder.eval_catfishfile builder.plugins.each do |plugin| system("vagrant plugin install #{plugin}") unless `vagrant plugin list`.include? plugin end end |