Sha256: e54c4ea6872601a1825cf724b23fc44752030dde28ce40c98123d6fedf8a094d

Contents?: true

Size: 1.49 KB

Versions: 7

Compression:

Stored size: 1.49 KB

Contents

# frozen_string_literal: true
module Rails
  class Project < ShopifyCli::ProjectType
    # hidden_project_type
    creator 'Ruby on Rails App', 'Rails::Commands::Create'

    register_command('Rails::Commands::Deploy', "deploy")
    register_command('Rails::Commands::Generate', "generate")
    register_command('Rails::Commands::Open', "open")
    register_command('Rails::Commands::Populate', "populate")
    register_command('Rails::Commands::Serve', "serve")
    register_command('Rails::Commands::Tunnel', "tunnel")
    # register_task('Rails::Tasks::RailsTask', 'rails_task')

    require Project.project_filepath('messages/messages')
    register_messages(Rails::Messages::MESSAGES)
  end

  # define/autoload project specific Commands
  module Commands
    autoload :Create, Project.project_filepath('commands/create')
    autoload :Deploy, Project.project_filepath('commands/deploy')
    autoload :Generate, Project.project_filepath('commands/generate')
    autoload :Open, Project.project_filepath('commands/open')
    autoload :Populate, Project.project_filepath('commands/populate')
    autoload :Serve, Project.project_filepath('commands/serve')
    autoload :Tunnel, Project.project_filepath('commands/tunnel')
  end

  # define/autoload project specific Tasks
  module Tasks
  end

  # define/autoload project specific Forms
  module Forms
    autoload :Create, Project.project_filepath('forms/create')
  end

  autoload :Ruby, Project.project_filepath('ruby')
  autoload :Gem, Project.project_filepath('gem')
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shopify-cli-1.0.2 lib/project_types/rails/cli.rb
shopify-cli-1.0.1 lib/project_types/rails/cli.rb
shopify-cli-1.0.0 lib/project_types/rails/cli.rb
shopify-cli-0.9.3 lib/project_types/rails/cli.rb
shopify-cli-0.9.2 lib/project_types/rails/cli.rb
shopify-cli-0.9.1 lib/project_types/rails/cli.rb
shopify-cli-0.9.0 lib/project_types/rails/cli.rb