mina-padrino 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +4 -0
- data/lib/mina/padrino/db.rb +1 -14
- data/lib/mina/padrino/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb432e7432781d24348f1728e038306e8c4c58f
|
4
|
+
data.tar.gz: 794b5e63462893dfa471d5a5cb9847a38b05fbc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32b88d1032dd937df8e3bbff0bd0b505f8ba2eb6d79dd81816516b5177ce5f6b73ea3ca1b1d55153aab5f7af468467a91f4c053f0e521e77d284549ebbef00f9
|
7
|
+
data.tar.gz: 75aacecfa7b1a65f0cc3498739e49260c070328b9a28bf3884268e11f86c894a7f40357b9d94ce426aa76fb926f94092536b43d894687d0450787330e3e93fbd
|
data/ChangeLog.md
CHANGED
data/lib/mina/padrino/db.rb
CHANGED
@@ -1,18 +1,5 @@
|
|
1
1
|
require 'mina/padrino/core'
|
2
2
|
|
3
|
-
# Macro used later by :rake, etc
|
4
|
-
make_run_task = lambda { |name, sample_args|
|
5
|
-
task name, [:arguments] => :environment do |t, args|
|
6
|
-
arguments = args[:arguments]
|
7
|
-
command = send name
|
8
|
-
unless arguments
|
9
|
-
puts %{You need to provide arguments. Try: mina "#{name}[#{sample_args}]"}
|
10
|
-
exit 1
|
11
|
-
end
|
12
|
-
queue echo_cmd %[cd "#{deploy_to!}/#{current_path!}" && #{command} #{arguments}]
|
13
|
-
end
|
14
|
-
}
|
15
|
-
|
16
3
|
namespace :padrino do
|
17
4
|
namespace :db do
|
18
5
|
# ### padrino:db:migrate
|
@@ -21,7 +8,7 @@ namespace :padrino do
|
|
21
8
|
in_current_dir do
|
22
9
|
queue %{
|
23
10
|
echo "-----> Migrating database"
|
24
|
-
#{echo_cmd %[#{
|
11
|
+
#{echo_cmd %[#{rake} db:migrate]}
|
25
12
|
}
|
26
13
|
end
|
27
14
|
end
|
data/lib/mina/padrino/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mina-padrino
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.2.3
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: mina tasks for padrino
|