Class: Ploy::Publisher
- Inherits:
-
Object
- Object
- Ploy::Publisher
- Defined in:
- lib/ploy/publisher.rb
Instance Method Summary collapse
-
#initialize(conf_source) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish ⇒ Object
Constructor Details
#initialize(conf_source) ⇒ Publisher
Returns a new instance of Publisher.
5 6 7 |
# File 'lib/ploy/publisher.rb', line 5 def initialize(conf_source) @config = Ploy::LocalPackage::Config.new conf_source end |
Instance Method Details
#publish ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ploy/publisher.rb', line 9 def publish pkgpath = @config.builder.build_deb remote_package = @config.remote_package remote_package.upload(pkgpath) remote_package.make_current return remote_package end |