class Phobos::CLI::Commands

Public Class Methods

source_root() click to toggle source
# File lib/phobos/cli.rb, line 64
def self.source_root
  File.expand_path(File.join(File.dirname(__FILE__), '../..'))
end

Public Instance Methods

init() click to toggle source
# File lib/phobos/cli.rb, line 26
      def init
        copy_file 'config/phobos.yml.example', 'config/phobos.yml'
        create_file 'phobos_boot.rb' do
          <<~EXAMPLE
            # Use this file to load your code
            puts <<~ART
              ______ _           _
              | ___ \\\\ |         | |
              | |_/ / |__   ___ | |__   ___  ___
              |  __/| '_ \\\\ / _ \\\\| '_ \\\\ / _ \\\\/ __|
              | |   | | | | (_) | |_) | (_) \\\\__ \\\\
              \\\\_|   |_| |_|\\\\___/|_.__/ \\\\___/|___/
            ART
            puts "\nphobos_boot.rb - find this file at \#{File.expand_path(__FILE__)}\n\n"
          EXAMPLE
        end
      end
start() click to toggle source
# File lib/phobos/cli.rb, line 60
def start
  Phobos::CLI::Start.new(options).execute
end
version() click to toggle source
# File lib/phobos/cli.rb, line 21
def version
  puts Phobos::VERSION
end