mama_cass 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +3 -3
- data/Gemfile.lock +11 -0
- data/LICENSE +1 -1
- data/README.md +17 -2
- data/features/step_definitions/rails_steps.rb +1 -0
- data/lib/generators/USAGE +1 -0
- data/lib/generators/install_generator.rb +1 -0
- data/lib/generators/templates/cassandra.rb +4 -0
- data/lib/generators/templates/cassandra.yml +2 -2
- data/lib/generators/templates/storage-conf.xml +1 -1
- data/lib/mama_cass/version.rb +1 -1
- data/lib/mama_cass.rb +1 -0
- data/mama_cass.gemspec +4 -3
- metadata +25 -21
data/.rvmrc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
|
3
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/
|
4
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/
|
3
|
+
&& -s "${rvm_path:-$HOME/.rvm}/environments/ruby-1.9.2-p0@mama_cass" ]] ; then
|
4
|
+
\. "${rvm_path:-$HOME/.rvm}/environments/ruby-1.9.2-p0@mama_cass"
|
5
5
|
else
|
6
|
-
rvm --create "
|
6
|
+
rvm --create "ruby-1.9.2-p0@mama_cass"
|
7
7
|
fi
|
data/Gemfile.lock
CHANGED
@@ -2,6 +2,7 @@ PATH
|
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
4
|
mama_cass (0.0.1)
|
5
|
+
cassandra
|
5
6
|
rails (~> 3.0)
|
6
7
|
rake
|
7
8
|
thor
|
@@ -42,6 +43,11 @@ GEM
|
|
42
43
|
cucumber (~> 0.9.4)
|
43
44
|
background_process (1.2)
|
44
45
|
builder (2.1.2)
|
46
|
+
cassandra (0.8.2)
|
47
|
+
json
|
48
|
+
rake
|
49
|
+
simple_uuid (>= 0.1.0)
|
50
|
+
thrift_client (>= 0.4.0)
|
45
51
|
cucumber (0.9.4)
|
46
52
|
builder (~> 2.1.2)
|
47
53
|
diff-lcs (~> 1.1.2)
|
@@ -90,9 +96,13 @@ GEM
|
|
90
96
|
rspec-expectations (2.1.0)
|
91
97
|
diff-lcs (~> 1.1.2)
|
92
98
|
rspec-mocks (2.1.0)
|
99
|
+
simple_uuid (0.1.1)
|
93
100
|
sqlite3-ruby (1.3.2)
|
94
101
|
term-ansicolor (1.0.5)
|
95
102
|
thor (0.14.4)
|
103
|
+
thrift (0.2.0.4)
|
104
|
+
thrift_client (0.5.0)
|
105
|
+
thrift (~> 0.2.0)
|
96
106
|
treetop (1.4.9)
|
97
107
|
polyglot (>= 0.3.1)
|
98
108
|
tzinfo (0.3.23)
|
@@ -102,6 +112,7 @@ PLATFORMS
|
|
102
112
|
|
103
113
|
DEPENDENCIES
|
104
114
|
aruba
|
115
|
+
cassandra
|
105
116
|
cucumber
|
106
117
|
mama_cass!
|
107
118
|
rails (~> 3.0)
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
1
|
# Mama Cass
|
2
2
|
|
3
|
-
Mama Cass is a Rails generator to install [cassandra](http://cassandra.apache.org/). It also includes a command line application for starting cassandra and logging into the cassandra console.
|
3
|
+
Mama Cass is a Rails 3 generator to install [cassandra](http://cassandra.apache.org/). It also includes a command line application for starting cassandra and logging into the cassandra console.
|
4
4
|
|
5
|
-
##
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add mama cass to your Gemfile:
|
8
|
+
|
9
|
+
<pre>
|
10
|
+
gem 'mama_cass'
|
11
|
+
</pre>
|
12
|
+
|
13
|
+
Use bundler to install it:
|
14
|
+
|
15
|
+
<pre>
|
16
|
+
bundle install
|
17
|
+
</pre>
|
18
|
+
|
19
|
+
Run the generator to install cassandra (currently version 0.6.0) in your app:
|
6
20
|
|
7
21
|
<pre>
|
8
22
|
rails g mama_cass:install
|
@@ -15,6 +29,7 @@ This installs the following directories and files:
|
|
15
29
|
* config/cassandra/cassandra.in.sh - server start up options
|
16
30
|
* config/cassandra/log4j.properties - log4j configuration
|
17
31
|
* config/cassandra/storage-conf.xml - keyspace definitions
|
32
|
+
* config/initializers/cassandra.rb - cassandra connection object setup
|
18
33
|
|
19
34
|
## Command line app
|
20
35
|
|
@@ -18,6 +18,7 @@ Then /^cassandra should be installed$/ do
|
|
18
18
|
| config/cassandra/cassandra.in.sh |
|
19
19
|
| config/cassandra/log4j.properties |
|
20
20
|
| config/cassandra/storage-conf.xml |
|
21
|
+
| config/initializers/cassandra.rb |
|
21
22
|
And the file "config/cassandra.yml" should contain "keyspace: sample_app_development"
|
22
23
|
And the file "config/cassandra.yml" should contain "keyspace: sample_app_test"
|
23
24
|
And the file "config/cassandra/storage-conf.xml" should contain "sample_app_development"
|
data/lib/generators/USAGE
CHANGED
@@ -22,6 +22,7 @@ module MamaCass
|
|
22
22
|
copy_file 'cassandra.in.sh', 'config/cassandra/cassandra.in.sh'
|
23
23
|
copy_file 'log4j.properties', 'config/cassandra/log4j.properties'
|
24
24
|
template 'storage-conf.xml', 'config/cassandra/storage-conf.xml'
|
25
|
+
copy_file 'cassandra.rb', 'config/initializers/cassandra.rb'
|
25
26
|
end
|
26
27
|
|
27
28
|
protected
|
@@ -1,5 +1,5 @@
|
|
1
1
|
development:
|
2
|
-
home:
|
2
|
+
home:
|
3
3
|
servers: 127.0.0.1:9160
|
4
4
|
keyspace: <%= application_name %>_development
|
5
5
|
thrift:
|
@@ -7,7 +7,7 @@ development:
|
|
7
7
|
retries: 2
|
8
8
|
|
9
9
|
test:
|
10
|
-
home:
|
10
|
+
home:
|
11
11
|
servers: 127.0.0.1:9160
|
12
12
|
keyspace: <%= application_name %>_test
|
13
13
|
thrift:
|
@@ -25,7 +25,7 @@
|
|
25
25
|
~ The name of this cluster. This is mainly used to prevent machines in
|
26
26
|
~ one logical cluster from joining another.
|
27
27
|
-->
|
28
|
-
<ClusterName
|
28
|
+
<ClusterName><%= application_name %></ClusterName>
|
29
29
|
|
30
30
|
<!--
|
31
31
|
~ Turn on to make new [non-seed] nodes automatically migrate the right data
|
data/lib/mama_cass/version.rb
CHANGED
data/lib/mama_cass.rb
CHANGED
data/mama_cass.gemspec
CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Jared Carroll"]
|
10
10
|
s.email = ["jared@carbonfive.com"]
|
11
|
-
s.homepage = "http://github.com/
|
12
|
-
s.summary = %q{Rails generator and command line app to install, start and interact with cassandra}
|
13
|
-
s.description = %q{Mama Cass is a Rails generator to install cassandra. It also includes a command line application for starting cassandra and logging into the cassandra console.}
|
11
|
+
s.homepage = "http://github.com/carbonfive/mama_cass"
|
12
|
+
s.summary = %q{Rails 3 generator and command line app to install, start and interact with cassandra}
|
13
|
+
s.description = %q{Mama Cass is a Rails 3 generator to install cassandra. It also includes a command line application for starting cassandra and logging into the cassandra console.}
|
14
14
|
|
15
15
|
s.rubyforge_project = "mama_cass"
|
16
16
|
|
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_dependency 'rails', '~> 3.0'
|
22
22
|
s.add_dependency 'rake'
|
23
23
|
s.add_dependency 'thor'
|
24
|
+
s.add_dependency 'cassandra'
|
24
25
|
s.add_development_dependency 'cucumber'
|
25
26
|
s.add_development_dependency 'aruba'
|
26
27
|
s.add_development_dependency 'rspec'
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mama_cass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 29
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Jared Carroll
|
@@ -15,7 +14,7 @@ autorequire:
|
|
15
14
|
bindir: bin
|
16
15
|
cert_chain: []
|
17
16
|
|
18
|
-
date: 2010-
|
17
|
+
date: 2010-12-08 00:00:00 -08:00
|
19
18
|
default_executable:
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
@@ -26,7 +25,6 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ~>
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 7
|
30
28
|
segments:
|
31
29
|
- 3
|
32
30
|
- 0
|
@@ -41,7 +39,6 @@ dependencies:
|
|
41
39
|
requirements:
|
42
40
|
- - ">="
|
43
41
|
- !ruby/object:Gem::Version
|
44
|
-
hash: 3
|
45
42
|
segments:
|
46
43
|
- 0
|
47
44
|
version: "0"
|
@@ -55,69 +52,77 @@ dependencies:
|
|
55
52
|
requirements:
|
56
53
|
- - ">="
|
57
54
|
- !ruby/object:Gem::Version
|
58
|
-
hash: 3
|
59
55
|
segments:
|
60
56
|
- 0
|
61
57
|
version: "0"
|
62
58
|
type: :runtime
|
63
59
|
version_requirements: *id003
|
64
60
|
- !ruby/object:Gem::Dependency
|
65
|
-
name:
|
61
|
+
name: cassandra
|
66
62
|
prerelease: false
|
67
63
|
requirement: &id004 !ruby/object:Gem::Requirement
|
68
64
|
none: false
|
69
65
|
requirements:
|
70
66
|
- - ">="
|
71
67
|
- !ruby/object:Gem::Version
|
72
|
-
hash: 3
|
73
68
|
segments:
|
74
69
|
- 0
|
75
70
|
version: "0"
|
76
|
-
type: :
|
71
|
+
type: :runtime
|
77
72
|
version_requirements: *id004
|
78
73
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
74
|
+
name: cucumber
|
80
75
|
prerelease: false
|
81
76
|
requirement: &id005 !ruby/object:Gem::Requirement
|
82
77
|
none: false
|
83
78
|
requirements:
|
84
79
|
- - ">="
|
85
80
|
- !ruby/object:Gem::Version
|
86
|
-
hash: 3
|
87
81
|
segments:
|
88
82
|
- 0
|
89
83
|
version: "0"
|
90
84
|
type: :development
|
91
85
|
version_requirements: *id005
|
92
86
|
- !ruby/object:Gem::Dependency
|
93
|
-
name:
|
87
|
+
name: aruba
|
94
88
|
prerelease: false
|
95
89
|
requirement: &id006 !ruby/object:Gem::Requirement
|
96
90
|
none: false
|
97
91
|
requirements:
|
98
92
|
- - ">="
|
99
93
|
- !ruby/object:Gem::Version
|
100
|
-
hash: 3
|
101
94
|
segments:
|
102
95
|
- 0
|
103
96
|
version: "0"
|
104
97
|
type: :development
|
105
98
|
version_requirements: *id006
|
106
99
|
- !ruby/object:Gem::Dependency
|
107
|
-
name:
|
100
|
+
name: rspec
|
108
101
|
prerelease: false
|
109
102
|
requirement: &id007 !ruby/object:Gem::Requirement
|
110
103
|
none: false
|
111
104
|
requirements:
|
112
105
|
- - ">="
|
113
106
|
- !ruby/object:Gem::Version
|
114
|
-
hash: 3
|
115
107
|
segments:
|
116
108
|
- 0
|
117
109
|
version: "0"
|
118
110
|
type: :development
|
119
111
|
version_requirements: *id007
|
120
|
-
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: sqlite3-ruby
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
segments:
|
121
|
+
- 0
|
122
|
+
version: "0"
|
123
|
+
type: :development
|
124
|
+
version_requirements: *id008
|
125
|
+
description: Mama Cass is a Rails 3 generator to install cassandra. It also includes a command line application for starting cassandra and logging into the cassandra console.
|
121
126
|
email:
|
122
127
|
- jared@carbonfive.com
|
123
128
|
executables:
|
@@ -142,6 +147,7 @@ files:
|
|
142
147
|
- lib/generators/USAGE
|
143
148
|
- lib/generators/install_generator.rb
|
144
149
|
- lib/generators/templates/cassandra.in.sh
|
150
|
+
- lib/generators/templates/cassandra.rb
|
145
151
|
- lib/generators/templates/cassandra.yml
|
146
152
|
- lib/generators/templates/log4j.properties
|
147
153
|
- lib/generators/templates/storage-conf.xml
|
@@ -818,7 +824,7 @@ files:
|
|
818
824
|
- vendor/cassandra-0.6.0/lib/slf4j-api-1.5.8.jar
|
819
825
|
- vendor/cassandra-0.6.0/lib/slf4j-log4j12-1.5.8.jar
|
820
826
|
has_rdoc: true
|
821
|
-
homepage: http://github.com/
|
827
|
+
homepage: http://github.com/carbonfive/mama_cass
|
822
828
|
licenses: []
|
823
829
|
|
824
830
|
post_install_message:
|
@@ -831,7 +837,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
831
837
|
requirements:
|
832
838
|
- - ">="
|
833
839
|
- !ruby/object:Gem::Version
|
834
|
-
hash: 3
|
835
840
|
segments:
|
836
841
|
- 0
|
837
842
|
version: "0"
|
@@ -840,7 +845,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
840
845
|
requirements:
|
841
846
|
- - ">="
|
842
847
|
- !ruby/object:Gem::Version
|
843
|
-
hash: 3
|
844
848
|
segments:
|
845
849
|
- 0
|
846
850
|
version: "0"
|
@@ -850,7 +854,7 @@ rubyforge_project: mama_cass
|
|
850
854
|
rubygems_version: 1.3.7
|
851
855
|
signing_key:
|
852
856
|
specification_version: 3
|
853
|
-
summary: Rails generator and command line app to install, start and interact with cassandra
|
857
|
+
summary: Rails 3 generator and command line app to install, start and interact with cassandra
|
854
858
|
test_files:
|
855
859
|
- features/cli.feature
|
856
860
|
- features/generator.feature
|