Sha256: ea19e8db1724c5e7ef379641d24d234e0d9f0837d690e01cbc98fd6a38861e96

Contents?: true

Size: 465 Bytes

Versions: 10

Compression:

Stored size: 465 Bytes

Contents

module EacLauncher
  module Instances
    class Settings
      def initialize(data)
        @data = ActiveSupport::HashWithIndifferentAccess.new(data.is_a?(Hash) ? data : {})
      end

      def git_current_revision
        @data[__method__] || 'origin/master'
      end

      def git_publish_remote
        @data[__method__] || 'publish'
      end

      def publishable?
        @data.key?(:publishable) ? @data[:publishable] : true
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eac_launcher-0.6.0 lib/eac_launcher/instances/settings.rb
eac_launcher-0.5.1 lib/eac_launcher/instances/settings.rb
eac_launcher-0.5.0 lib/eac_launcher/instances/settings.rb
eac_launcher-0.4.0 lib/eac_launcher/instances/settings.rb
eac_launcher-0.3.2 lib/eac_launcher/instances/settings.rb
eac_launcher-0.3.1 lib/eac_launcher/instances/settings.rb
eac_launcher-0.3.0 lib/eac_launcher/instances/settings.rb
eac_launcher-0.2.2 lib/eac_launcher/instances/settings.rb
eac_launcher-0.2.1 lib/eac_launcher/instances/settings.rb
eac_launcher-0.2.0 lib/eac_launcher/instances/settings.rb