class Radon::Environments
Public Class Methods
extract(key, target)
click to toggle source
Extract the zip
# File lib/core/environments.rb, line 29 def self.extract(key, target) envs = get_all_names if envs.include? key send "extract_#{key}", target else fail_with("#{key} is not a supported environment.\nYou can suggest it be added at https://github.com/cbrnrd/radon/issues") end end
get_all_names()
click to toggle source
Gets all environments as an array of strings
# File lib/core/environments.rb, line 19 def self.get_all_names @@all.keys end
get_target_of(key)
click to toggle source
Gets the value (corrosponding zip) of the key
# File lib/core/environments.rb, line 24 def self.get_target_of(key) @@all[key] end