Sha256: 759b67c318edbd153a83680656b20e81d0c95483f4860d439c71d537dde81d9c

Contents?: true

Size: 1.4 KB

Versions: 49

Compression:

Stored size: 1.4 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/')
    HTTP_VIEWS_FOLDER_PATH = File.join(Dir.pwd, 'app/http/views/')

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


    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_FOLDER_PATHS = Dir.glob(File.join(Dir.pwd, 'plugins/*/app/http/views/'))
    end
  end
end

Version data entries

49 entries across 45 versions & 1 rubygems

Version Path
rubypitaya-3.19.6 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.5 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.4 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.3 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.2 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.19.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.18.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.17.2 ./lib/rubypitaya/core/path.rb
rubypitaya-3.17.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.17.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.16.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.15.3 ./lib/rubypitaya/core/path.rb
rubypitaya-3.15.2 ./lib/rubypitaya/core/path.rb
rubypitaya-3.15.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.15.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.14.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.13.1 ./lib/rubypitaya/core/path.rb
rubypitaya-3.13.0 ./lib/rubypitaya/core/path.rb
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/rubypitaya-3.12.1/lib/rubypitaya/core/path.rb