filecluster 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/bin/fc-setup-db +3 -2
  2. data/lib/fc/version.rb +1 -1
  3. metadata +3 -3
@@ -14,7 +14,8 @@ descriptions = {
14
14
  :password => {:short => 'p', :full => 'password', :default => '', :text => 'mysql password, default ""', :save => true},
15
15
  :port => {:short => 'P', :full => 'port', :default => '3306', :text => 'mysql port, default "3306"', :save => true},
16
16
  :prefix => {:short => 't', :full => 'prefix', :default => '', :text => 'tables prefix, default ""', :save => true},
17
- :init_tables =>{:short => 'i', :full => 'init', :default => false, :text => 'init tables, default no', :no_val => true}
17
+ :init_tables =>{:short => 'i', :full => 'init', :default => false, :text => 'init tables, default no', :no_val => true},
18
+ :force => {:short => 'f', :full => 'force', :default => false, :text => 'do not ask questions', :no_val => true}
18
19
  }
19
20
  desc = %q{Setup FileCluster database connection options.
20
21
  Create tables if nessary.
@@ -25,7 +26,7 @@ trap("INT", proc {exit})
25
26
 
26
27
  puts options.inspect.gsub(/[\{\}\:]/, "").gsub(", ", "\n").gsub(/(.{7,})=>/, "\\1:\t").gsub("=>", ":\t\t")
27
28
 
28
- s = Readline.readline("Continue? (y/n) ", false).strip.downcase
29
+ s = options[:force] ? 'y' : Readline.readline("Continue? (y/n) ", false).strip.downcase
29
30
  puts ""
30
31
  if s == "y" || s == "yes"
31
32
  print "Test connection.. "
@@ -1,3 +1,3 @@
1
1
  module FC
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filecluster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -170,7 +170,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  segments:
172
172
  - 0
173
- hash: 3114607092367906518
173
+ hash: 4485743793001821888
174
174
  required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  none: false
176
176
  requirements:
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  version: '0'
180
180
  segments:
181
181
  - 0
182
- hash: 3114607092367906518
182
+ hash: 4485743793001821888
183
183
  requirements: []
184
184
  rubyforge_project:
185
185
  rubygems_version: 1.8.24