ios_ci 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/model/params.rb +4 -3
- metadata +1 -1
data/lib/model/params.rb
CHANGED
@@ -7,13 +7,13 @@ ACTION_CALABASH = "calabash"
|
|
7
7
|
|
8
8
|
class Params
|
9
9
|
# attributes
|
10
|
-
|
10
|
+
attr_reader :action, :source_root, :target, :scheme, :workspace, :configuration,
|
11
11
|
:architecture, :sdk, :family, :build_path, :log_file
|
12
12
|
|
13
13
|
# public methods
|
14
14
|
public
|
15
15
|
|
16
|
-
|
16
|
+
def initialize
|
17
17
|
set_defaults
|
18
18
|
begin
|
19
19
|
parse_action
|
@@ -105,6 +105,7 @@ class Params
|
|
105
105
|
def check_action
|
106
106
|
@action == ACTION_BUILD || @action == ACTION_CEDAR || @action == ACTION_CALABASH
|
107
107
|
end
|
108
|
+
|
108
109
|
def check_options
|
109
110
|
if self.action.nil?
|
110
111
|
puts "You must specify action type"
|
@@ -123,6 +124,6 @@ class Params
|
|
123
124
|
end
|
124
125
|
|
125
126
|
def usage
|
126
|
-
print_file("
|
127
|
+
print_file("usage.txt")
|
127
128
|
end
|
128
129
|
end
|