psychic-nemesis-ninja 0.0.3 → 0.0.4

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.
@@ -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-db" do
20
- require_relative "commands/export-db"
19
+ command "db-export" do
20
+ require_relative "commands/db-export"
21
21
  ExportDb
22
22
  end
23
23
 
24
- command "import-db" do
25
- require_relative "commands/import-db"
24
+ command "db-import" do
25
+ require_relative "commands/db-import"
26
26
  ImportDb
27
27
  end
28
28
  end
@@ -1,7 +1,7 @@
1
1
  module Psychic
2
2
  module Nemesis
3
3
  module Ninja
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 3
9
- version: 0.0.3
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-db.rb
37
- - lib/commands/import-db.rb
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