Class: CreateRubyApp::Actions::CreateDirectories

Inherits:
Object
  • Object
show all
Defined in:
lib/create_ruby_app/actions/create_directories.rb

Class Method Summary collapse

Class Method Details

.call(app) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/create_ruby_app/actions/create_directories.rb', line 9

def self.call(app)
  [
    Pathname.new("#{app.name}/bin"),
    Pathname.new("#{app.name}/lib/#{app.name}"),
    Pathname.new("#{app.name}/spec/lib/#{app.name}")
  ].each(&FileUtils.method(:mkdir_p))
end