Class: FPM::Fry::Command
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- FPM::Fry::Command
- Extended by:
- Forwardable
- Defined in:
- lib/fpm/fry/command.rb,
lib/fpm/fry/command/cook.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Cook
Instance Attribute Summary collapse
- #client ⇒ Object
-
#ui ⇒ Object
readonly
Returns the value of attribute ui.
Instance Method Summary collapse
-
#initialize(invocation_path, ctx = {}) ⇒ Command
constructor
A new instance of Command.
- #parse(attrs) ⇒ Object
Constructor Details
Instance Attribute Details
#client ⇒ Object
39 40 41 42 43 44 45 46 47 48 |
# File 'lib/fpm/fry/command.rb', line 39 def client @client ||= begin client = FPM::Fry::Client.new( logger: logger, tls: tls?, tlsverify: tlsverify? ) logger.debug("Docker connected",client.server_version) client end end |
#ui ⇒ Object (readonly)
Returns the value of attribute ui.
22 23 24 |
# File 'lib/fpm/fry/command.rb', line 22 def ui @ui end |
Instance Method Details
#parse(attrs) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/fpm/fry/command.rb', line 32 def parse(attrs) super if debug? ui.logger.level = :debug end end |