Class: Jobly::Commands::InitCmd
- Defined in:
- lib/jobly/commands/init.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/jobly/commands/init.rb', line 14 def run raise ArgumentError, "#{target_dir} already exists" if File.exist? target_dir FileUtils.copy_entry source_dir, target_dir say "Created #{template} workspace in #{target_dir}:" files.each { |file| say "- #{file}" } end |