Class: Phobos::CLI::Commands
- Inherits:
-
Thor
- Object
- Thor
- Phobos::CLI::Commands
- Includes:
- Thor::Actions
- Defined in:
- lib/phobos/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
64 65 66 |
# File 'lib/phobos/cli.rb', line 64 def self.source_root File.(File.join(File.dirname(__FILE__), '../..')) end |
Instance Method Details
#init ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/phobos/cli.rb', line 26 def init copy_file 'config/phobos.yml.example', 'config/phobos.yml' create_file 'phobos_boot.rb' do " # Use this file to load your code\n puts <<~ART\n ______ _ _\n | ___ \\\\\\\\ | | |\n | |_/ / |__ ___ | |__ ___ ___\n | __/| '_ \\\\\\\\ / _ \\\\\\\\| '_ \\\\\\\\ / _ \\\\\\\\/ __|\n | | | | | | (_) | |_) | (_) \\\\\\\\__ \\\\\\\\\n \\\\\\\\_| |_| |_|\\\\\\\\___/|_.__/ \\\\\\\\___/|___/\n ART\n puts \"\\nphobos_boot.rb - find this file at \\\#{File.expand_path(__FILE__)}\\n\\n\"\n EXAMPLE\n end\nend\n" |
#start ⇒ Object
60 61 62 |
# File 'lib/phobos/cli.rb', line 60 def start Phobos::CLI::Start.new().execute end |
#version ⇒ Object
21 22 23 |
# File 'lib/phobos/cli.rb', line 21 def version puts Phobos::VERSION end |