class Bridgetown::Commands::Base
Public Class Methods
exit_on_failure?()
click to toggle source
# File lib/bridgetown-core/commands/base.rb, line 9 def self.exit_on_failure? true end
find_command_possibilities(subcommand)
click to toggle source
Override single character commands if necessary
Calls superclass method
# File lib/bridgetown-core/commands/base.rb, line 19 def find_command_possibilities(subcommand) if subcommand == "c" ["console"] else super end end
Public Instance Methods
dream()
click to toggle source
# File lib/bridgetown-core/commands/base.rb, line 29 def dream puts "" puts "🎶 The Dream of the 90s is Alive in Portland... ✨" puts " https://youtu.be/U4hShMEk1Ew" puts " https://youtu.be/0_HGqPGp9iY" puts "" end
help(subcommand = nil)
click to toggle source
Calls superclass method
# File lib/bridgetown-core/commands/base.rb, line 38 def help(subcommand = nil) if subcommand && respond_to?(subcommand) klass = Kernel.const_get("Bridgetown::Commands::#{subcommand.capitalize}") klass.start(["-h"]) else puts "Bridgetown v#{Bridgetown::VERSION.magenta} \"#{Bridgetown::CODE_NAME.yellow}\"" \ " is a Webpack-aware, Ruby-powered static site generator for the modern Jamstack era" puts "" puts "Usage:" puts " bridgetown <command> [options]" puts "" super end end