cassandra_migrations 0.0.1.pre5 → 0.0.1.pre6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,16 @@
1
+ # encoding : utf-8
2
+
3
+ Capistrano::Configuration.instance(:must_exist).load do
4
+ after 'bundle:install', 'cassandra:migrate'
5
+
6
+ namespace :cassandra do
7
+ task :migrate, :roles => :cassandra do
8
+ rake = fetch(:rake, "rake")
9
+ rails_env = fetch(:rails_env, "production")
10
+ directory = latest_release
11
+
12
+ run "cd #{directory} && #{rake} RAILS_ENV=#{rails_env} cassandra:create"
13
+ run "cd #{directory} && #{rake} RAILS_ENV=#{rails_env} cassandra:migrate"
14
+ end
15
+ end
16
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cassandra_migrations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre5
4
+ version: 0.0.1.pre6
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -116,6 +116,7 @@ extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
118
  - lib/cassandra_migrations.rb
119
+ - lib/cassandra_migrations/capistrano.rb
119
120
  - lib/cassandra_migrations/migration.rb
120
121
  - lib/cassandra_migrations/migrator.rb
121
122
  - lib/cassandra_migrations/cassandra.rb