ydd 0.0.7 → 0.0.8
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.
- data/VERSION +1 -1
- data/lib/ydd.rb +1 -0
- data/lib/ydd/application.rb +7 -4
- data/ydd.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.8
|
data/lib/ydd.rb
CHANGED
data/lib/ydd/application.rb
CHANGED
@@ -4,10 +4,12 @@ module YDD
|
|
4
4
|
class Application < Thor
|
5
5
|
include Thor::Actions
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
METHOD_OPTIONS = { :env => :string, :force => :boolean,
|
8
|
+
:skip_schema => :boolean, :skip_data => :boolean,
|
9
|
+
:tables => :string
|
10
|
+
}
|
10
11
|
|
12
|
+
method_options METHOD_OPTIONS
|
11
13
|
desc "dump DUMP_DIR [APP_DIR='.'] [OPTIONS]", "Dumps the database contents and schema."
|
12
14
|
def dump(dump_dir, app_dir = ".")
|
13
15
|
setup! dump_dir, app_dir, :dump => true
|
@@ -15,9 +17,10 @@ module YDD
|
|
15
17
|
YDD.dump @dump_dir
|
16
18
|
end
|
17
19
|
|
20
|
+
method_options METHOD_OPTIONS
|
18
21
|
desc "load DUMP_DIR [APP_DIR='.'] [OPTIONS]", "Loads the database contents and schema."
|
19
22
|
def load(dump_dir, app_dir = ".")
|
20
|
-
setup! dump_dir, app_dir
|
23
|
+
setup! dump_dir, app_dir, :dump => false
|
21
24
|
say "Starting load..."
|
22
25
|
YDD.load @dump_dir
|
23
26
|
end
|
data/ydd.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ydd}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Adam Wiggins", "Orion Henry", "Darcy Laycock"]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ydd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adam Wiggins
|