File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 90
90
desc 'Uninstall gem'
91
91
task :uninstall do
92
92
cmd = "gem uninstall -aIx #{ repo_name } "
93
- puts cmd
94
93
# rescue on gem not installed error.
95
- begin ; ` cmd` ; rescue ; end
94
+ begin ; sh " #{ cmd } " ; rescue ; end
96
95
end
97
96
98
97
desc 'Install gem'
Original file line number Diff line number Diff line change @@ -74,9 +74,10 @@ def update data, *args
74
74
!ENV [ 'APP_PATH' ] . empty?
75
75
76
76
# device is not case sensitive
77
- ENV [ 'DEVICE' ] = ENV [ 'DEVICE' ] . strip . downcase if ENV [ 'DEVICE' ]
77
+ ENV [ 'DEVICE' ] = ENV [ 'DEVICE' ] . strip . downcase if ! ENV [ 'DEVICE' ] . nil?
78
78
if ! %w( ios android selendroid ) . include? ENV [ 'DEVICE' ]
79
- raise 'DEVICE must be ios, android, or selendroid'
79
+ raise %(DEVICE="#{ ENV [ 'DEVICE' ] } " must be ios, android,
80
+ or selendroid.)
80
81
end
81
82
end
82
83
You can’t perform that action at this time.
0 commit comments