iron_maiden 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rubygems_plugin.rb +4 -2
- metadata +1 -1
data/lib/rubygems_plugin.rb
CHANGED
@@ -6,11 +6,13 @@ class Gem::Commands::TortureCommand < Gem::Command
|
|
6
6
|
def initialize
|
7
7
|
super 'torture', "Prepares a Rack application for deployment with IronRuby with the IIS Rack Handler"
|
8
8
|
|
9
|
-
add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root')
|
9
|
+
add_option('-p', '--public PATH', 'Path to your Rack app\'s public document root') do |value,option|
|
10
|
+
options[:path] = value
|
11
|
+
end
|
10
12
|
end
|
11
13
|
|
12
14
|
def execute
|
13
|
-
explicit_path =
|
15
|
+
explicit_path = options[:path] || './public'
|
14
16
|
|
15
17
|
unless File.directory? explicit_path
|
16
18
|
raise Gem::Exception, "supplied public path, or default ('public'), does not exist"
|