Sha256: 8f93cf2d5d22dd1e6eb0110e66550a8227dbe313e5670934bec99bc6ca4bfda3
Contents?: true
Size: 374 Bytes
Versions: 14
Compression:
Stored size: 374 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.yml')) end def bump new_meta = meta new_meta.version = version File.open('opsk.yml', 'w') {|f| f.write(new_meta.marshal_dump.to_yaml)} end end end
Version data entries
14 entries across 14 versions & 1 rubygems