Sha256: 626f92a9da7b8008ece0ae828cc8bd3be92d03c90e57807f0be1392396ea74ba
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
require 'linecook/commands/command' require 'linecook/cookbook' module Linecook module Commands # ::desc prints the cookbook env # # Print the cookbook env. # class Env < Command config :cookbook_dir, '.', :short => :d # the cookbook directory config :path, nil # package path def process(*keys) current = Linecook::Cookbook.init(cookbook_dir).env(path) keys.each {|key| current = current[key] if current } YAML.dump(current, $stdout) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linecook-0.6.2 | lib/linecook/commands/env.rb |