Class: Radius::Toolbelt::ReleaseRepo

Inherits:
Object
  • Object
show all
Includes:
Rake::DSL
Defined in:
lib/radius/toolbelt/release_repo.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo, ver, dir, files) ⇒ ReleaseRepo

Returns a new instance of ReleaseRepo.



10
11
12
13
14
15
# File 'lib/radius/toolbelt/release_repo.rb', line 10

def initialize(repo, ver, dir, files)
  @repo = repo
  @dir = dir
  @ver = ver
  @files = files
end

Instance Attribute Details

#dirObject (readonly)

Returns the value of attribute dir.



9
10
11
# File 'lib/radius/toolbelt/release_repo.rb', line 9

def dir
  @dir
end

#filesObject (readonly)

Returns the value of attribute files.



9
10
11
# File 'lib/radius/toolbelt/release_repo.rb', line 9

def files
  @files
end

#repoObject (readonly)

Returns the value of attribute repo.



9
10
11
# File 'lib/radius/toolbelt/release_repo.rb', line 9

def repo
  @repo
end

#verObject (readonly)

Returns the value of attribute ver.



9
10
11
# File 'lib/radius/toolbelt/release_repo.rb', line 9

def ver
  @ver
end

Instance Method Details

#runObject



17
18
19
20
21
22
# File 'lib/radius/toolbelt/release_repo.rb', line 17

def run
  puts "Releasing to repo in #{dir}"
  checkout
  copy
  tag_commit_push
end