Sha256: 8329a64202aa38266227a8e26db9f6006494e03f37335581aa9178874f675026

Contents?: true

Size: 583 Bytes

Versions: 132

Compression:

Stored size: 583 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Launcher
    module Instances
      class Settings
        DEFAULT_CURRENT_REVISION = 'origin/master'
        DEFAULT_PUBLISH_REMOTE = 'publish'

        common_constructor :data do
          self.data = (data.is_a?(Hash) ? data : {}).with_indifferent_access
        end

        def git_current_revision
          data[__method__] || DEFAULT_CURRENT_REVISION
        end

        def git_publish_remote
          data[__method__] || DEFAULT_PUBLISH_REMOTE
        end
      end
    end
  end
end

Version data entries

132 entries across 132 versions & 2 rubygems

Version Path
avm-0.94.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.94.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.93.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.92.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.92.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.91.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.90.1 lib/avm/launcher/instances/settings.rb
eac_tools-0.87.1 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.90.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.87.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.89.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.86.12 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.88.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.86.11 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.87.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.86.8 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.86.2 lib/avm/launcher/instances/settings.rb
eac_tools-0.86.7 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.86.1 lib/avm/launcher/instances/settings.rb
eac_tools-0.86.5 sub/avm/lib/avm/launcher/instances/settings.rb