lib/aptly_repo.rb in aptly_cli-0.1.9 vs lib/aptly_repo.rb in aptly_cli-0.2.0
- old
+ new
@@ -10,9 +10,13 @@
# Load aptly-cli.conf and establish base_uri
config = AptlyCli::AptlyLoad.new.configure_with("/etc/aptly-cli.conf")
base_uri "http://#{config[:server]}:#{config[:port]}/api"
+ if config[:debug] == true
+ debug_output $stdout
+ end
+
def repo_create(repo_options = {:name => nil, :comment => nil, :DefaultDistribution => nil, :DefaultComponent => nil})
uri = "/repos"
name = repo_options[:name]
comment = repo_options[:comment]
default_distribution = repo_options[:DefaultDistribution]