Class: Mango::Runner

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/mango/runner.rb

Overview

Mango::Runner is a Thor class and is used in combination with the bin/mango executable.

Instance Method Summary collapse

Instance Method Details

#create(path) ⇒ Object

Creates a new Mango application at the specified path

Parameters:



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/mango/runner.rb', line 18

def create(path)
  self.destination_root = path

  copy_file(".gitignore")
  copy_file("config.ru")
  copy_file("Gemfile")
  copy_file("Procfile")
  copy_file("README.md")

  copy_content
  copy_themes
end