cassie 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57931ab0cf0675f1ee2165b8856356f273475769
|
4
|
+
data.tar.gz: faa9b5db7b96dc383d7042a979e5019967868f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 251c1ec5bfd7014dd95b3914968a1921aaafdb3cc8f2057b42e7deafebe686af55c664ef9719e51c4f166acbce27ac7a0e95cdaa829cca9f2d772d1ec547aea5
|
7
|
+
data.tar.gz: c8c92da0e5de488a37014eadd48920723e7d1a3e4c1138276620a81c4f90b974c996c5398d167a547d18ac2b3b337b9cf6043fbbdb6692c130d639f9a56aa7a7
|
data/lib/cassie/schema/README.md
CHANGED
@@ -17,6 +17,8 @@ List command descriptions and advanced options:
|
|
17
17
|
cassie --help
|
18
18
|
```
|
19
19
|
|
20
|
+
If using Rails, and Rails needs to be initialized when loading `cassandra.yml` or your migration files, remember to use the `cassie-rails` commands.
|
21
|
+
|
20
22
|
#### Getting Started
|
21
23
|
|
22
24
|
If no schema has been defined yet (e.g. no keyspace, tables, or types), simply initialize Cassie versioning:
|
@@ -60,7 +62,6 @@ cassie migrations:import
|
|
60
62
|
|
61
63
|
> The original `cassandra_migrations` migration files and schema in the physical layer are not changed. Remove the old files when comfortable.
|
62
64
|
|
63
|
-
|
64
65
|
#### Coming from no explicit migration/versioning management
|
65
66
|
|
66
67
|
Import your existing schema held in Cassandra with a single task:
|
@@ -9,14 +9,14 @@ namespace :cassie do
|
|
9
9
|
begin
|
10
10
|
opts = {}
|
11
11
|
OptionParser.new do |args|
|
12
|
-
args.on("-p", "--path", "Path to place configuration file. Defaults to './config/cassandra.yml'") do |p|
|
13
|
-
opts[:destination_path] = if
|
14
|
-
|
12
|
+
args.on("-p", "--path PATH", "Path to place configuration file. Defaults to './config/cassandra.yml'") do |p|
|
13
|
+
opts[:destination_path] = if p[0] == "/"
|
14
|
+
p
|
15
15
|
else
|
16
|
-
File.join(Dir.pwd,
|
16
|
+
File.join(Dir.pwd, p)
|
17
17
|
end
|
18
18
|
end
|
19
|
-
args.on("-n", "--name", "Application name. Used as prefix for keyspace names. Defaults to 'my_app'") do |n|
|
19
|
+
args.on("-n", "--name NAME", "Application name. Used as prefix for keyspace names. Defaults to 'my_app'") do |n|
|
20
20
|
opts[:app_name] = n
|
21
21
|
end
|
22
22
|
end.parse!(argv)
|
@@ -11,7 +11,7 @@ namespace :cassie do
|
|
11
11
|
puts "-- Importing `cassandra_migrations` migration files"
|
12
12
|
opts = {}
|
13
13
|
OptionParser.new do |args|
|
14
|
-
args.on("-p", "--path", "Directory containing existing migrations. Defaults to 'db/cassandra_migrate'.") do |p|
|
14
|
+
args.on("-p", "--path PATH", "Directory containing existing migrations. Defaults to 'db/cassandra_migrate'.") do |p|
|
15
15
|
opts[:path] = p
|
16
16
|
end
|
17
17
|
end.parse!(argv)
|
data/lib/cassie/tasks/stop.rake
CHANGED
@@ -5,8 +5,8 @@ namespace :cassie do
|
|
5
5
|
|
6
6
|
opts = {}
|
7
7
|
OptionParser.new do |args|
|
8
|
-
args.on("-a", "--all", "Stop all cassandra processes, not just the server (e.g. cqlsh). Defaults to false.") do
|
9
|
-
opts[:kill_all] =
|
8
|
+
args.on("-a", "--all", "Stop all cassandra processes, not just the server (e.g. cqlsh). Defaults to false.") do
|
9
|
+
opts[:kill_all] = true
|
10
10
|
end
|
11
11
|
end.parse!(argv)
|
12
12
|
|
data/lib/cassie/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Prothro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cassandra-driver
|