ydd 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
data/lib/ydd.rb CHANGED
@@ -75,6 +75,7 @@ module YDD
75
75
  if !File.directory?(directory)
76
76
  raise Error, "Please provide a valid directory - #{directory} doesn't exist."
77
77
  end
78
+
78
79
  unless skip_schema?
79
80
  check_files! directory, "schema.rb"
80
81
  SchemaManager.load File.join(directory, "schema.rb")
@@ -4,10 +4,12 @@ module YDD
4
4
  class Application < Thor
5
5
  include Thor::Actions
6
6
 
7
- method_options :env => :string, :force => :boolean,
8
- :skip_schema => :boolean, :skip_data => :boolean,
9
- :tables => :string
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.7"
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: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Wiggins