load_remote_db 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b15307d40d92fd76c553d089e2960d65ce31e1cc
4
- data.tar.gz: 5491a21958c43212756b591cf9639f3490cfe08b
3
+ metadata.gz: 8b3d5cea3e682bb673520fb772e03c48a8adfdd5
4
+ data.tar.gz: e289335fa2b71e7a9cc3616438b73c1aba8dc2ab
5
5
  SHA512:
6
- metadata.gz: 8e99dbedb9bcdf4140d794dace3e44681e14a9cbeb88443e00920387b493fae0ab11bda934a2014d65bf92a43fd724484f8444fe9e6aa59c349f76b697a9b545
7
- data.tar.gz: d50d8ecd340de438c2190c5c06be4a33177cb73381d4bf1b014e64196f2a5f388dddd4e70f71cc772aa127220c8c05d6a7b971a1787a7f6e935aeab7f54f9f99
6
+ metadata.gz: 2f6b98fdd6ec9ec9a79d5fdecd12e9bf79e05313f59e2e30175fb094cc8f36df818b16c15ca9464b39e7d290f162f7c13529398791d573a6f6202a6bd729dd45
7
+ data.tar.gz: 596742f4e5dc997b293fd914c0d66c0293eec8e13374a9d2f55ede935ea7a7a07652e67cdadcad14bff293b4e04c439a1cd5697a3eb02fcabb533f516e0f98da
data/README.md CHANGED
@@ -7,7 +7,10 @@ This gem is used to download & load the remote database into your local developm
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'load_remote_db'
10
+ group :development do
11
+ # ...
12
+ gem 'load_remote_db'
13
+ end
11
14
  ```
12
15
 
13
16
  And then execute:
@@ -21,20 +24,22 @@ Or install it yourself as:
21
24
 
22
25
 
23
26
 
27
+
28
+
24
29
  ## Usage
25
30
 
26
31
  Simply execute the command:
27
32
 
28
- $ [bundle exec] rake load_remote_db:run [SERVER=environment] [SYNC_FOLDER=folder] [DOWNLOAD_ONLY=true]
33
+ $ [bundle exec] rake db:load_from_remote [SERVER=environment] [SYNC_FOLDER=folder] [DOWNLOAD_ONLY=true]
29
34
 
30
35
  For instance
31
36
 
32
- $ bundle exec rake load_remote_db:run SERVER=staging
33
- $ bundle exec rake load_remote_db:run SERVER=staging SYNC_FOLDER=public/system
34
- $ bundle exec rake load_remote_db:run SERVER=staging DOWNLOAD_ONLY=true
37
+ $ bundle exec rake db:load_from_remote SERVER=staging
38
+ $ bundle exec rake db:load_from_remote SERVER=staging SYNC_FOLDER=public/system
39
+ $ bundle exec rake db:load_from_remote SERVER=staging DOWNLOAD_ONLY=true
40
+
35
41
 
36
42
 
37
- gg
38
43
  ## Development
39
44
 
40
45
  After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
@@ -55,5 +60,3 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[james
55
60
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
56
61
 
57
62
 
58
-
59
-
@@ -1,3 +1,3 @@
1
1
  module LoadRemoteDb
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -112,7 +112,7 @@ class RemoteDbLoader
112
112
  end
113
113
 
114
114
  def method_missing(name, *args, &block)
115
- return unless %I[server set].include?(name)
115
+ return self unless %I[server set].include?(name)
116
116
  @server_ip ||= if name == :server
117
117
  args[0]
118
118
  elsif name == :set && args[0] == :domain
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: load_remote_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Huynh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-27 00:00:00.000000000 Z
11
+ date: 2017-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  requirements: []
79
79
  rubyforge_project:
80
- rubygems_version: 2.5.1
80
+ rubygems_version: 2.6.11
81
81
  signing_key:
82
82
  specification_version: 4
83
83
  summary: Load MySQL Remote DB for Mina/Capistrano