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
eac_tools-0.69.1 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.75.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.69.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.74.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.68.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.73.1 lib/avm/launcher/instances/settings.rb
eac_tools-0.67.1 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.73.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.67.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.72.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.66.0 sub/avm/lib/avm/launcher/instances/settings.rb
eac_tools-0.65.1 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.71.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.65.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.70.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.64.0 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.69.0 lib/avm/launcher/instances/settings.rb
eac_tools-0.63.0 sub/avm/lib/avm/launcher/instances/settings.rb
eac_tools-0.62.1 sub/avm/lib/avm/launcher/instances/settings.rb
avm-0.68.0 lib/avm/launcher/instances/settings.rb