Top Level Namespace
Defined Under Namespace
Modules: Maven, RMaven
Classes: String
Constant Summary
collapse
- ARGV_HASH =
build_args_hash
- ARGV_KEY_IGNORED =
ARGV_HASH.map{|key, value| value || key}
- RMAVEN_SETTING_YAML =
'rmaven.yml'
Instance Method Summary
collapse
Instance Method Details
#build_args_hash ⇒ Object
6
7
8
9
10
11
12
13
14
|
# File 'lib/tasks/mvn.rb', line 6
def build_args_hash
args = ARGV.dup
args.shift
args.inject({}) do |dest, arg|
key, value = *arg.split("=", 2)
dest[key] = value
dest
end
end
|
#show_file(*paths) ⇒ Object
16
17
18
19
20
|
# File 'lib/tasks/mvn.rb', line 16
def show_file(*paths)
open(File.join(File.dirname(__FILE__), '..', *paths)) do |f|
puts f.read
end
end
|