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

Version Path
opskeleton-0.5.3 lib/opskeleton/bump.rb
opskeleton-0.5.2 lib/opskeleton/bump.rb
opskeleton-0.5.1 lib/opskeleton/bump.rb
opskeleton-0.5.0 lib/opskeleton/bump.rb
opskeleton-0.4.9 lib/opskeleton/bump.rb
opskeleton-0.4.8 lib/opskeleton/bump.rb
opskeleton-0.4.7 lib/opskeleton/bump.rb
opskeleton-0.4.6 lib/opskeleton/bump.rb
opskeleton-0.4.5 lib/opskeleton/bump.rb
opskeleton-0.4.4 lib/opskeleton/bump.rb
opskeleton-0.4.3 lib/opskeleton/bump.rb
opskeleton-0.4.2 lib/opskeleton/bump.rb
opskeleton-0.4.1 lib/opskeleton/bump.rb
opskeleton-0.4.0 lib/opskeleton/bump.rb