Class: KnifeChangelog::Changelog::Location

Inherits:
Struct
  • Object
show all
Defined in:
lib/knife/changelog/changelog.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#rev_parseObject

Returns the value of attribute rev_parse

Returns:

  • (Object)

    the current value of rev_parse



12
13
14
# File 'lib/knife/changelog/changelog.rb', line 12

def rev_parse
  @rev_parse
end

#revisionObject

Returns the value of attribute revision

Returns:

  • (Object)

    the current value of revision



12
13
14
# File 'lib/knife/changelog/changelog.rb', line 12

def revision
  @revision
end

#uriObject

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



12
13
14
# File 'lib/knife/changelog/changelog.rb', line 12

def uri
  @uri
end

Class Method Details

.from_berk_git_location(location) ⇒ Object

todo move this method to Changelog::Berkshelf



14
15
16
17
18
# File 'lib/knife/changelog/changelog.rb', line 14

def self.from_berk_git_location(location)
  Location.new(location.uri,
               location.revision.strip,
               location.instance_variable_get(:@rev_parse))
end