class DPL::Provider::PuppetForge

Public Instance Methods

build() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 18
def build
  pmod = Puppet::Face['module', :current]
  pmod.build('./')
end
check_app() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 27
def check_app
  modulefile.metadata
end
check_auth() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 31
def check_auth
  raise Error, "must supply a user" unless option(:user)
  raise Error, "must supply a password" unless option(:password)
end
forge() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 14
def forge
  @forge ||= Blacksmith::Forge.new(options[:user], options[:password], options[:url])
end
modulefile() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 10
def modulefile
  @modulefile ||= Blacksmith::Modulefile.new
end
needs_key?() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 23
def needs_key?
  false
end
push_app() click to toggle source
# File lib/dpl/provider/puppet_forge.rb, line 36
def push_app
  build
  log "Uploading to Puppet Forge #{forge.username}/#{modulefile.name}"
  forge.push!(modulefile.name)
end