Class: Catfish::CLI::Resolve
- Inherits:
-
Object
- Object
- Catfish::CLI::Resolve
- Defined in:
- lib/catfish/cli/resolve.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#thor ⇒ Object
readonly
Returns the value of attribute thor.
Instance Method Summary collapse
-
#initialize(options, thor) ⇒ Resolve
constructor
A new instance of Resolve.
- #run ⇒ Object
Constructor Details
#initialize(options, thor) ⇒ Resolve
Returns a new instance of Resolve.
5 6 7 8 |
# File 'lib/catfish/cli/resolve.rb', line 5 def initialize(, thor) = @thor = thor end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/catfish/cli/resolve.rb', line 3 def end |
#thor ⇒ Object (readonly)
Returns the value of attribute thor.
3 4 5 |
# File 'lib/catfish/cli/resolve.rb', line 3 def thor @thor end |
Instance Method Details
#run ⇒ Object
10 11 12 13 14 15 |
# File 'lib/catfish/cli/resolve.rb', line 10 def run builder = Dsl.new builder.eval_catfishfile IO.write('Catfishfile.lock', builder.servers.join("\n")) p "#{builder.servers.size} servers found" end |