psychic-nemesis-ninja 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
File without changes
|
@@ -2,7 +2,7 @@ class ImportDb < Vagrant.plugin(2, :command)
|
|
2
2
|
def execute
|
3
3
|
with_target_vms([], :single_target => true) do |vm|
|
4
4
|
@logger.debug("Import databases from /vagrant/exported_dbs.sql")
|
5
|
-
env = vm.action(:ssh_run, :ssh_run_command => "filename=`ls | sort -r | head -1`; mysql -uroot < /vagrant/db-export/${filename}")
|
5
|
+
env = vm.action(:ssh_run, :ssh_run_command => "filename=`ls /vagrant/db-export | sort -r | head -1`; mysql -uroot < /vagrant/db-export/${filename}")
|
6
6
|
|
7
7
|
# Exit with the exit status of the command or a 0 if we didn't
|
8
8
|
# get one.
|
@@ -16,13 +16,13 @@ class PsychicMemesisNinja < Vagrant.plugin("2")
|
|
16
16
|
RestartMemcached
|
17
17
|
end
|
18
18
|
|
19
|
-
command "export
|
20
|
-
require_relative "commands/export
|
19
|
+
command "db-export" do
|
20
|
+
require_relative "commands/db-export"
|
21
21
|
ExportDb
|
22
22
|
end
|
23
23
|
|
24
|
-
command "import
|
25
|
-
require_relative "commands/import
|
24
|
+
command "db-import" do
|
25
|
+
require_relative "commands/db-import"
|
26
26
|
ImportDb
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 4
|
9
|
+
version: 0.0.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Christopher Valles
|
@@ -33,8 +33,8 @@ files:
|
|
33
33
|
- LICENSE.txt
|
34
34
|
- README.md
|
35
35
|
- Rakefile
|
36
|
-
- lib/commands/export
|
37
|
-
- lib/commands/import
|
36
|
+
- lib/commands/db-export.rb
|
37
|
+
- lib/commands/db-import.rb
|
38
38
|
- lib/commands/restart-apache.rb
|
39
39
|
- lib/commands/restart-memcached.rb
|
40
40
|
- lib/commands/restart-mysql.rb
|