module SparkEngine::Help
Public Instance Methods
build()
click to toggle source
# File lib/spark_engine/command/help.rb, line 69 def build "build [options] # Build assets" end
clean()
click to toggle source
# File lib/spark_engine/command/help.rb, line 85 def clean "clean # Remove cache files" end
commands(command)
click to toggle source
# File lib/spark_engine/command/help.rb, line 38 def commands(command) case command when 'new', 'n'; new when 'help', 'h'; help when 'build', 'b'; build when 'watch', 'w'; watch when 'server', 's'; server when 'generate', 'g'; generate when 'clean', 'c'; clean when 'help', 'h'; help when 'gem:build'; gem_build when 'gem:install'; gem_install when 'gem:release'; gem_release when 'gem:bump:patch'; gem_bump_patch when 'gem:bump:minor'; gem_bump_minor when 'gem:bump:major'; gem_bump_major end end
engine_commands()
click to toggle source
# File lib/spark_engine/command/help.rb, line 23 def engine_commands list = %w(help build watch server generate clean gem:build gem:install gem:release) begin gem 'bump' list.concat %w(gem:bump:patch gem:bump:minor gem:bump:major) rescue Gem::LoadError end list end
gem_build()
click to toggle source
# File lib/spark_engine/command/help.rb, line 81 def gem_build "gem:build # Build assets for production and build gem" end
gem_bump_major()
click to toggle source
# File lib/spark_engine/command/help.rb, line 105 def gem_bump_major "gem:bump:major # Bump version v0.0.0 -> v1.0.0" end
gem_bump_minor()
click to toggle source
# File lib/spark_engine/command/help.rb, line 101 def gem_bump_minor "gem:bump:minor # Bump version v0.0.0 -> v0.1.0" end
gem_bump_patch()
click to toggle source
# File lib/spark_engine/command/help.rb, line 97 def gem_bump_patch "gem:bump:patch # Bump version v0.0.0 -> v0.0.1" end
gem_install()
click to toggle source
# File lib/spark_engine/command/help.rb, line 89 def gem_install "gem:install # Build assets for production, build, and install gem" end
gem_release()
click to toggle source
# File lib/spark_engine/command/help.rb, line 93 def gem_release "gem:release # Build assets for production, build, and release gem to rubygems.org" end
generate()
click to toggle source
# File lib/spark_engine/command/help.rb, line 65 def generate "generate name [options] # Generate a Component" end
help()
click to toggle source
# File lib/spark_engine/command/help.rb, line 61 def help "help [command] # Show help for a specific command" end
new()
click to toggle source
# File lib/spark_engine/command/help.rb, line 57 def new "new name [options] # Create a new Spark framework engine" end
server()
click to toggle source
# File lib/spark_engine/command/help.rb, line 77 def server "server [options] # Serve documentation site" end
spark_commands()
click to toggle source
# File lib/spark_engine/command/help.rb, line 34 def spark_commands %w(new help) end
watch()
click to toggle source
# File lib/spark_engine/command/help.rb, line 73 def watch "watch [options] # Build assets when files change" end