Sha256: b2404b05d29613756b7c80337e955939e377c7d8019ad207fcd9e89009cbdc8c
Contents?: true
Size: 376 Bytes
Versions: 15
Compression:
Stored size: 376 Bytes
Contents
module Opsk class Bump < Thor::Group include Thorable, Thor::Actions argument :version, :type => :string, :desc => 'new version number' def meta OpenStruct.new(YAML.load_file('opsk.yaml')) end def bump new_meta = meta new_meta.version = version File.open('opsk.yaml', 'w') {|f| f.write(new_meta.marshal_dump.to_yaml)} end end end
Version data entries
15 entries across 15 versions & 1 rubygems