Class: Assemblyline::CLI::Env
- Inherits:
-
Object
- Object
- Assemblyline::CLI::Env
- Defined in:
- lib/assemblyline/cli.rb
Instance Method Summary collapse
Instance Method Details
#to_flags ⇒ Object
81 82 83 |
# File 'lib/assemblyline/cli.rb', line 81 def to_flags to_hash.map { |var, val| "-e #{var}=#{val}" }.join(" ") end |
#to_hash ⇒ Object
85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/assemblyline/cli.rb', line 85 def to_hash { "SSH_KEY" => ssh_key, "DOCKERCFG" => dockercfg, "JSPM_GITHUB_TOKEN" => ENV["JSPM_GITHUB_TOKEN"], "CI" => ci?, "CI_MASTER" => ci_master?, "BUILD_URL" => build_url, "GIT_URL" => git_url, "GITHUB_ACCESS_TOKEN" => ENV["GITHUB_ACCESS_TOKEN"], }.reject { |_, v| v.nil? } end |