Class: Lotus::CliSubCommands::DB Private
- Inherits:
 - 
      Thor
      
        
- Object
 - Thor
 - Lotus::CliSubCommands::DB
 
 
- Defined in:
 - lib/lotus/cli_sub_commands/db.rb
 
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A set of subcommands related to DB
It is run with:
`bundle exec lotus db`
  Instance Method Summary collapse
- #apply ⇒ Object private
 - #console(name = nil) ⇒ Object private
 - #create ⇒ Object private
 - #drop ⇒ Object private
 - #migrate(version = nil) ⇒ Object private
 - #prepare ⇒ Object private
 - #version ⇒ Object private
 
Instance Method Details
#apply ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      62 63 64 65 66 67 68 69 70  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 62 def apply if [:help] invoke :help, ['apply'] else assert_development_environment! require 'lotus/commands/db/apply' Lotus::Commands::DB::Apply.new().start end end  | 
  
#console(name = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      16 17 18 19 20 21 22 23  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 16 def console(name = nil) if [:help] invoke :help, ['console'] else require 'lotus/commands/db/console' Lotus::Commands::DB::Console.new(, name).start end end  | 
  
#create ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      27 28 29 30 31 32 33 34 35  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 27 def create if [:help] invoke :help, ['create'] else assert_allowed_environment! require 'lotus/commands/db/create' Lotus::Commands::DB::Create.new().start end end  | 
  
#drop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      39 40 41 42 43 44 45 46 47  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 39 def drop if [:help] invoke :help, ['drop'] else assert_allowed_environment! require 'lotus/commands/db/drop' Lotus::Commands::DB::Drop.new().start end end  | 
  
#migrate(version = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      51 52 53 54 55 56 57 58  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 51 def migrate(version = nil) if [:help] invoke :help, ['migrate'] else require 'lotus/commands/db/migrate' Lotus::Commands::DB::Migrate.new(, version).start end end  | 
  
#prepare ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      74 75 76 77 78 79 80 81 82  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 74 def prepare if [:help] invoke :help, ['prepare'] else assert_allowed_environment! require 'lotus/commands/db/prepare' Lotus::Commands::DB::Prepare.new().start end end  | 
  
#version ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
      88 89 90 91 92 93 94 95  | 
    
      # File 'lib/lotus/cli_sub_commands/db.rb', line 88 def version if [:help] invoke :help, ['version'] else require 'lotus/commands/db/version' Lotus::Commands::DB::Version.new().start end end  |