Module: Rakext
- Defined in:
- lib/rakext.rb
Defined Under Namespace
Modules: Tasks
Class Method Summary collapse
Class Method Details
.get_args ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/rakext.rb', line 36 def self.get_args case when ENV['RUBY_ARGS'] a = ENV['RUBY_ARGS'].strip a = a[1..-2] if a =~ /^\(.*\)$/ eval("echo(#{a})") when ENV['YAML_ARGS'] YAML.load(ENV['YAML_ARGS']) when ENV['JSON_ARGS'] MultiJson.decode(ENV['JSON_ARGS']) end end |