File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ fn main() {
16
16
// read the content of the DOCKERFILE and store it in a variable
17
17
let dockerfile = include_bytes ! ( "../Dockerfile" ) ;
18
18
19
- let ruby_version = cli. ruby_version . unwrap ( ) ;
20
- let rails_version = cli. rails_version . unwrap ( ) ;
19
+ let ruby_version = cli. ruby_version ;
20
+ let rails_version = cli. rails_version ;
21
21
22
22
// Run docker build --build-arg RUBY_VERSION=$RUBY_VERSION --build-arg RAILS_VERSION=$RAILS_VERSION -t rails-new-$RUBY_VERSION-$RAILS_VERSION
23
23
// passing the content of DOCKERFILE to the command stdin
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ pub struct Cli {
7
7
/// arguments passed to `rails new`
8
8
pub args : Vec < String > ,
9
9
#[ clap( long, short = 'u' , default_value = "3.2.3" ) ]
10
- pub ruby_version : Option < String > ,
10
+ pub ruby_version : String ,
11
11
#[ clap( long, short = 'r' , default_value = "7.1.3" ) ]
12
- pub rails_version : Option < String > ,
12
+ pub rails_version : String ,
13
13
}
14
14
15
15
#[ test]
You can’t perform that action at this time.
0 commit comments