Sha256: 603018055999c62b767607dcde24aefa6105e0aed0da99938c61ac3a011b2918

Contents?: true

Size: 1.32 KB

Versions: 16

Compression:

Stored size: 1.32 KB

Contents

module RubyPitaya

  class Path
    APP_TEMPLATE_FOLDER_PATH = File.join(__dir__, '../app-template/')
    MIGRATION_TEMPLATE_PATH = File.join(__dir__, 'templates/template_migration.rb.erb')

    APP_FOLDER_PATH = File.join(Dir.pwd, 'app/')
    HANDLERS_FOLDER_PATH = File.join(Dir.pwd, 'app/handlers/')
    APP_CONFIG_FOLDER_PATH = File.join(Dir.pwd, 'app/config/')
    APP_SETUP_FOLDER_PATH = File.join(Dir.pwd, 'app/setup/')
    MIGRATIONS_FOLDER_PATH = File.join(Dir.pwd, 'app/migrations/')
    PLUGINS_FOLDER_PATH = File.join(Dir.pwd, 'plugins/')

    ROUTES_FILE_PATH = File.join(Dir.pwd, 'config/routes.rb')

    HTTP_VIEWS_PATH = File.join(Dir.pwd, 'app/http/views')


    class Core
      APP_FOLDER_PATH = File.join(__dir__, 'app/')
      MIGRATIONS_FOLDER_PATH = File.join(__dir__, 'app/migrations/')
    end

    class Plugins
      APP_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/'))
      HANDLERS_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/handlers'))
      APP_CONFIG_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/config/'))
      APP_SETUP_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/setup/'))
      MIGRATIONS_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/migrations/'))
      HTTP_VIEWS_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/http/views'))
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rubypitaya-3.1.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.1.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.0.3 ./lib/rubypitaya/core/path.rb
rubypitaya-3.0.2 ./lib/rubypitaya/core/path.rb
rubypitaya-3.0.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.0.0 ./lib/rubypitaya/core/path.rb
rubypitaya-2.27.1 ./lib/rubypitaya/core/path.rb
rubypitaya-2.27.0 ./lib/rubypitaya/core/path.rb
rubypitaya-2.26.3 ./lib/rubypitaya/core/path.rb
rubypitaya-2.26.2 ./lib/rubypitaya/core/path.rb
rubypitaya-2.26.1 ./lib/rubypitaya/core/path.rb
rubypitaya-2.26.0 ./lib/rubypitaya/core/path.rb
rubypitaya-2.25.1 ./lib/rubypitaya/core/path.rb
rubypitaya-2.25.0 ./lib/rubypitaya/core/path.rb
rubypitaya-2.24.0 ./lib/rubypitaya/core/path.rb
rubypitaya-2.23.0 ./lib/rubypitaya/core/path.rb