cassandra_migrations 0.0.1.pre5 → 0.0.1.pre6

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.
@@ -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