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

Version Path
opskeleton-0.8.3 lib/opskeleton/bump.rb
opskeleton-0.8.2 lib/opskeleton/bump.rb
opskeleton-0.8.0 lib/opskeleton/bump.rb
opskeleton-0.7.3 lib/opskeleton/bump.rb
opskeleton-0.7.2 lib/opskeleton/bump.rb
opskeleton-0.7.1 lib/opskeleton/bump.rb
opskeleton-0.7.0 lib/opskeleton/bump.rb
opskeleton-0.6.9 lib/opskeleton/bump.rb
opskeleton-0.6.7 lib/opskeleton/bump.rb
opskeleton-0.6.6 lib/opskeleton/bump.rb
opskeleton-0.6.5 lib/opskeleton/bump.rb
opskeleton-0.6.4 lib/opskeleton/bump.rb
opskeleton-0.6.3 lib/opskeleton/bump.rb
opskeleton-0.6.2 lib/opskeleton/bump.rb
opskeleton-0.6.0 lib/opskeleton/bump.rb