my_scripts 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/rabbit +20 -0
  3. data/my_scripts.gemspec +3 -2
  4. metadata +3 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/bin/rabbit ADDED
@@ -0,0 +1,20 @@
1
+ #!C:/Dev/ruby/bin/ruby.exe
2
+
3
+ # Show usage message and exit
4
+ def usage
5
+ puts "Usage:
6
+ #{__FILE__} start [args] - starts rabbitmq node
7
+ #{__FILE__} mqctl [args] - controls rabbitmq node"
8
+ exit 1
9
+ end
10
+
11
+ usage if ARGV.empty?
12
+
13
+ case ARGV.shift
14
+ when /start/
15
+ system "%ERLANG_HOME%/lib/rabbitmq_server-1.7.0/sbin/rabbitmq-server.bat #{ARGV.join(' ')}"
16
+ when /ctl/
17
+ system "%ERLANG_HOME%/lib/rabbitmq_server-1.7.0/sbin/rabbitmqctl.bat #{ARGV.join(' ')}"
18
+ else
19
+ usage
20
+ end
data/my_scripts.gemspec CHANGED
@@ -5,14 +5,14 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{my_scripts}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["arvicco"]
12
12
  s.date = %q{2010-01-16}
13
13
  s.description = %q{Collection of simple scripts (mostly dev-related)}
14
14
  s.email = %q{arvitallian@gmail.com}
15
- s.executables = ["gitcp", "mybones"]
15
+ s.executables = ["gitcp", "mybones", "rabbit"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE",
18
18
  "README.rdoc"
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  "VERSION",
27
27
  "bin/gitcp",
28
28
  "bin/mybones",
29
+ "bin/rabbit",
29
30
  "features/my_scripts.feature",
30
31
  "features/step_definitions/my_scripts_steps.rb",
31
32
  "features/support/env.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_scripts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - arvicco
@@ -37,6 +37,7 @@ email: arvitallian@gmail.com
37
37
  executables:
38
38
  - gitcp
39
39
  - mybones
40
+ - rabbit
40
41
  extensions: []
41
42
 
42
43
  extra_rdoc_files:
@@ -51,6 +52,7 @@ files:
51
52
  - VERSION
52
53
  - bin/gitcp
53
54
  - bin/mybones
55
+ - bin/rabbit
54
56
  - features/my_scripts.feature
55
57
  - features/step_definitions/my_scripts_steps.rb
56
58
  - features/support/env.rb