File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,21 @@ OptionParser.new do |opts|
5
5
options = { }
6
6
7
7
def check_appro_args ( number_of_args )
8
- raise "too many arguments for input" unless ARGV . length + 1 <= number_of_args
9
- raise "please enter the appropriate arguments" unless ARGV . length + 1 == number_of_args
8
+ raise "too many arguments for input" unless ARGV . length <= number_of_args
9
+ raise "please enter the appropriate arguments" unless ARGV . length == number_of_args
10
10
end
11
11
12
12
opts . banner = "See more documentation at http://cmu-is-projects.github.io/ferry"
13
13
14
14
opts . on ( "--dump ENVIRONMENT" , "Dumps database from specified env to sql file." ) do |opt |
15
- check_appro_args ( 1 )
15
+ check_appro_args ( 0 )
16
16
dumper = Ferry ::Dumper . new
17
17
dumper . dump ( opt )
18
18
end
19
19
20
20
# TODO
21
21
opts . on ( "--fill ENVIRONMENT FILEPATH" , "Overwrites database from specified file to the db in the specified env." ) do |opt |
22
- check_appro_args ( 2 )
22
+ check_appro_args ( 1 )
23
23
dumper = Ferry ::Filler . new
24
24
dumper . dump ( opt , ARGV [ 0 ] , ARGV [ 1 ] )
25
25
end
Original file line number Diff line number Diff line change
1
+ require 'ferry'
2
+
3
+ class Captain < Ferry
4
+
5
+ # after initializing some captain class
6
+ # we need to be able to
7
+ # 0 know what kind of content we want to move
8
+ # 1 know where we need to move data from
9
+ # 2 know where we need to move data to
10
+ # 3 any specifics of
11
+
12
+ def initialize ( **opts )
13
+ # @cargo ||= opts[:cargo]
14
+ # @to_loc ||= opts[:to_loc]
15
+ # @from_loc ||= opts[:form_loc]
16
+ end
17
+ end
Original file line number Diff line number Diff line change 1
1
module Ferry
2
- VERSION = "1.3.1 "
2
+ VERSION = "1.3.2 "
3
3
end
You can’t perform that action at this time.
0 commit comments