Sha256: 7effce7d3c48556a27215a2f5bc7947e0c7350c012488db5013fe0b275baf6ea
Contents?: true
Size: 609 Bytes
Versions: 1
Compression:
Stored size: 609 Bytes
Contents
module Heirloom module CLI class Show def initialize(args) id = args[:id] ? args[:id] : latest_id(args) @artifact = Artifact.new :name => args[:name], :id => id, :logger => args[:logger] end def show @logger = Logger puts @artifact.show.to_yaml end private def latest_id(args) @artifact = Artifact.new :name => args[:name], :logger => args[:logger] @artifact.list(1).first end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heirloom-0.1.4 | lib/heirloom/cli/show.rb |