File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -28,15 +28,14 @@ def execute(command)
28
28
`#{ command } `
29
29
end
30
30
31
- def make_starter_file
32
- if !File . exist? ( "lib/tasks/ferry.rake" )
33
- install_dir = `bundle show ferry` . chomp
34
- starter_file_contents = File . open ( "#{ install_dir } /doc/ferry_rake_contents.rb" , "rb" )
35
- contents = starter_file_contents . read
36
- File . open ( "lib/tasks/ferry.rake" , 'w' ) { |f | f . write ( contents ) }
37
- puts "/lib/tasks/ferry.rake created!"
31
+ def make_starter_files
32
+ if !File . exist? ( "Ferryfile" ) && !File . exist? ( "config/captain.rb" )
33
+ ferryfile_contents = File . open ( "Ferryfile" , "rb" )
34
+ captain_contents = File . open ( "config/captain.rb" , "rb" )
35
+ File . open ( "Ferryfile" , 'w' ) { |f | f . write ( ferryfile_contents . read ) }
36
+ File . open ( "config/captain.rb" , 'w' ) { |f | f . write ( captain_contents . read ) }
38
37
else
39
- puts "/lib/tasks/ferry.rake already exists - but you knew that already ... didn't you?"
38
+ puts "The files already exist. But you knew that already ... didn't you?"
40
39
end
41
40
end
42
41
You can’t perform that action at this time.
0 commit comments