class CreateProj::CLI
Base class for CLI
. Provides three project creation methods dependent on language type.
Public Instance Methods
haskell(name)
click to toggle source
Command line input option for creating haskell project.
@param [String] name the project
@example Call from command line
$ ./createproj haskell newproj #=> creates haskell proj called new proj
@return Nothing
# File lib/createproj/cli.rb, line 17 def haskell(name) CreateProj::Creator::HaskellCreator.new(name, options).run end
python(name)
click to toggle source
Command line input option for creating python project.
@param [String] name the project
@example Call from command line
$ ./createproj python newproj #=> creates python proj called newproj
@return Nothing
# File lib/createproj/cli.rb, line 30 def python(name) CreateProj::Creator::PythonCreator.new(name, options).run end
rails(name)
click to toggle source
Command line input option for creating rails project.
@param [String] name the project
@example Call from command line
$ ./createproj haskell newproj #=> creates rails proj called new proj
@return Nothing
# File lib/createproj/cli.rb, line 46 def rails(name) CreateProj::Creator::RailsCreator.new(name, options).run end
ruby(name)
click to toggle source
Command line input option for creating ruby project.
@param [String] name the project
@example Call from command line
$ ./createproj ruby newproj #=> creates ruby proj called new proj
@return Nothing
# File lib/createproj/cli.rb, line 59 def ruby(name) CreateProj::Creator::RubyCreator.new(name, options).run end