Class: DatacraftsIoSkeleton::Composer

Inherits:
Thor
  • Object
show all
Defined in:
lib/datacrafts_io_skeleton/composer.rb

Overview

Defines all CLI commands, their descriptions, params and aliases.

Instance Method Summary collapse

Instance Method Details

#create(app_name) ⇒ Object

Creates new app.

Parameters:

  • app_name (String)

    The name of app you are going to create.



23
24
25
# File 'lib/datacrafts_io_skeleton/composer.rb', line 23

def create(app_name)
  DatacraftsIoSkeleton::RailsCreator.new(app_name).call
end

#versionObject

Informs user about gem version.



30
31
32
# File 'lib/datacrafts_io_skeleton/composer.rb', line 30

def version
  say "datacrafts-io-skeleton #{DatacraftsIoSkeleton::VERSION}"
end