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, #check_root, included, #machines, #name, #type_of

Instance Method Details

#bumpObject



16
17
18
19
20
# File 'lib/opskeleton/bump.rb', line 16

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



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

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

#validateObject



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

def validate
	check_root
end