Sha256: d590ddb6999b421bf506f279ac03c26d5ff508c460872ce99ad6f44f2ffddc67
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
require "core/constants" module Radon class Environments @@all = { 'gradle' => File.join(DATA_DIR, "gradle.zip"), 'java' => File.join(DATA_DIR, "java.zip"), 'python' => File.join(DATA_DIR, "python.zip"), 'ruby' => File.join(DATA_DIR, "ruby.zip") } # Gets all environments as an array of strings def self.getAllNames @@all.keys end # Gets the value (corrosponding zip) of the key def self.getTargetOf(key) @@all[key] end def self.extract(key, target) case key when 'gradle' extract_gradle(target) when 'java' extract_java(target) when 'python' extract_python(target) when 'ruby' extract_ruby(target) else error("#{key} is not a supported environment.\nYou can suggest it be added at https://github.com/cbrnrd/krypton/issues") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radon-0.1.0 | lib/core/environments.rb |