Class: Pione::Command::PionePackageShowContext
- Inherits:
-
Rootage::CommandContext
- Object
- Rootage::ProcessContext
- Rootage::CommandContext
- Pione::Command::PionePackageShowContext
- Defined in:
- lib/pione/command/pione-package-show.rb
Overview
PionePackageShowContext
is a context for pione package show
.
Instance Attribute Summary
Attributes inherited from Rootage::ProcessContext
Instance Method Summary collapse
-
#print_by_block(header, params, env) ⇒ Object
Print parameters by block.
Methods inherited from Rootage::CommandContext
Methods inherited from Rootage::ProcessContext
#fail, #initialize, make, #test
Constructor Details
This class inherits a constructor from Rootage::ProcessContext
Instance Method Details
#print_by_block(header, params, env) ⇒ Object
Print parameters by block.
82 83 84 85 86 87 88 89 |
# File 'lib/pione/command/pione-package-show.rb', line 82 def print_by_block(header, params, env) unless params.empty? puts "%s:" % header params.each do |param| puts " %s := %s" % [param.name, param.value.eval(env).textize] end end end |