module Thor::Actions

Public Instance Methods

new_project(name, config = {}) click to toggle source

Creates a new project.

@param [String] name The name of the resource. @param [Hash] config

@example

new_project 'great-api'
# File lib/angus/generator/thor/new_project.rb, line 16
def new_project(name, config = {})
  action NewProject.new(self, name, config)
end
resource(name, actions, config = {}) click to toggle source

Creates a new resource.

@param [String] name The name of the resource. @param [Hash] config

@example

resource 'user', 'resources', 'definitions'
# File lib/angus/generator/thor/resource.rb, line 16
def resource(name, actions, config = {})
  action Resource.new(self, name, actions, config)
end