documentcloud-cloud-crowd 0.2.2 → 0.2.3

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/cloud-crowd.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cloud-crowd'
3
- s.version = '0.2.2' # Keep version in sync with cloud-cloud.rb
3
+ s.version = '0.2.3' # Keep version in sync with cloud-cloud.rb
4
4
  s.date = '2009-09-23'
5
5
 
6
6
  s.homepage = "http://wiki.github.com/documentcloud/cloud-crowd"
data/lib/cloud-crowd.rb CHANGED
@@ -33,6 +33,7 @@ module CloudCrowd
33
33
  # Autoload all the CloudCrowd internals.
34
34
  autoload :Action, 'cloud_crowd/action'
35
35
  autoload :AssetStore, 'cloud_crowd/asset_store'
36
+ autoload :CommandLine, 'cloud_crowd/command_line'
36
37
  autoload :Helpers, 'cloud_crowd/helpers'
37
38
  autoload :Inflector, 'cloud_crowd/inflector'
38
39
  autoload :Job, 'cloud_crowd/models'
@@ -43,7 +44,7 @@ module CloudCrowd
43
44
  autoload :WorkUnit, 'cloud_crowd/models'
44
45
 
45
46
  # Keep this version in sync with the gemspec.
46
- VERSION = '0.2.2'
47
+ VERSION = '0.2.3'
47
48
 
48
49
  # Increment the schema version when there's a backwards incompatible change.
49
50
  SCHEMA_VERSION = 3
@@ -41,7 +41,7 @@ Options:
41
41
  when 'server' then run_server(subcommand)
42
42
  when 'node' then run_node(subcommand)
43
43
  when 'load_schema' then run_load_schema
44
- when 'install' then run_install
44
+ when 'install' then run_install(subcommand)
45
45
  else usage
46
46
  end
47
47
  end
@@ -139,9 +139,9 @@ Options:
139
139
 
140
140
  # Install the required CloudCrowd configuration files into the specified
141
141
  # directory, or the current one.
142
- def run_install
142
+ def run_install(install_path)
143
143
  require 'fileutils'
144
- install_path = ARGV.shift || '.'
144
+ install_path ||= '.'
145
145
  FileUtils.mkdir_p install_path unless File.exists?(install_path)
146
146
  install_file "#{CC_ROOT}/config/config.example.yml", "#{install_path}/config.yml"
147
147
  install_file "#{CC_ROOT}/config/config.example.ru", "#{install_path}/config.ru"
@@ -224,7 +224,7 @@ Options:
224
224
  return unless ['y', 'yes', 'ok'].include? gets.chomp.downcase
225
225
  end
226
226
  is_dir ? FileUtils.cp_r(source, dest) : FileUtils.cp(source, dest)
227
- puts "installed #{dest}"
227
+ puts "installed #{dest}" unless ENV['RACK_ENV'] == 'test'
228
228
  end
229
229
 
230
230
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: documentcloud-cloud-crowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas