Class: Rails::Hyperdrive::LockFile::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/rails/hyperdrive/lock_file.rb

Overview

In-memory form of one files: entry. On disk, source_gem and source_version are a single "gem@version" string; the split/join lives in this file only.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#installed_atObject

Returns the value of attribute installed_at

Returns:

  • (Object)

    the current value of installed_at



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def installed_at
  @installed_at
end

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def kind
  @kind
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def path
  @path
end

#source_gemObject

Returns the value of attribute source_gem

Returns:

  • (Object)

    the current value of source_gem



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def source_gem
  @source_gem
end

#source_shaObject

Returns the value of attribute source_sha

Returns:

  • (Object)

    the current value of source_sha



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def source_sha
  @source_sha
end

#source_versionObject

Returns the value of attribute source_version

Returns:

  • (Object)

    the current value of source_version



16
17
18
# File 'lib/rails/hyperdrive/lock_file.rb', line 16

def source_version
  @source_version
end

Instance Method Details

#source_labelObject



17
18
19
# File 'lib/rails/hyperdrive/lock_file.rb', line 17

def source_label
  source_version ? "#{source_gem}@#{source_version}" : source_gem
end