Sha256: be40d71c3082e3a551f8e5d8caf5dd5f434d855f7a0e12e065c8ebb963a5b1c9
Contents?: true
Size: 619 Bytes
Versions: 12
Compression:
Stored size: 619 Bytes
Contents
module Jack class CreateYaml def data return @create_yaml if @create_yaml project_file = "#{@root}/jack/create.yml" project = File.exist?(project_file) ? YAML.load_file(project_file) : {} user_file = "#{ENV['HOME']}/.jack/create.yml" user = File.exist?(user_file) ? YAML.load_file(user_file) : {} default_file = File.expand_path("../default/create.yml", __FILE__) default = YAML.load_file(default_file) @create_yaml = default.merge(project.merge(user)) end def flags data.inject("") {|s,(k,v)| s << %{--#{k} "#{v}" } ; s }.strip end end end
Version data entries
12 entries across 12 versions & 1 rubygems