Class: Opsk::Bump

Inherits:
Thor::Group
  • Object
show all
Includes:
Thorable, Thor::Actions
Defined in:
lib/opskeleton/bump.rb

Instance Method Summary collapse

Methods included from Thorable

#artifact, #artifact_path, included, #machines, #name, #type_of

Instance Method Details

#bumpObject



11
12
13
14
15
# File 'lib/opskeleton/bump.rb', line 11

def bump
  new_meta = meta
	new_meta.version = version
	File.open('opsk.yaml', 'w') {|f| f.write(new_meta.marshal_dump.to_yaml)}
end

#metaObject



7
8
9
# File 'lib/opskeleton/bump.rb', line 7

def meta 
	 OpenStruct.new(YAML.load_file('opsk.yaml'))
end