confluencer 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.3
1
+ 0.1.4
data/confluencer.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{confluencer}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gabor Ratky"]
@@ -10,11 +10,20 @@ module Confluencer
10
10
  class_option :verbose, :desc => "Verbose output", :type => :boolean, :default => false, :aliases => "-v"
11
11
 
12
12
  # external configuration
13
- class_option :config, :type => :string, :aliases => "-c", :desc => "Confluence configuration", :default => "config/confluencer.yaml"
13
+ class_option :config, :type => :string, :aliases => "-c", :desc => "confluencer configuration file", :default => "config/confluencer.yaml"
14
14
  class_option :instance, :type => :string, :aliases => "-i", :desc => "Name of the Confluence instance", :default => "confluence"
15
15
  # explicitly specify default_task => :help
16
16
  default_task :help
17
17
 
18
+ desc "create-config", "Creates a confluencer configuration file"
19
+ def create_config
20
+ default_configuration = { :confluence => { :url => "http://confluence.acmecorp.com", :username => "roger", :password => "jessica"}}
21
+
22
+ File.open(options[:config], "w+") do |file|
23
+ file.puts(default_configuration.to_yaml)
24
+ end
25
+ end
26
+
18
27
  desc "login", "Logs in and verifies the Confluence account"
19
28
  def login
20
29
  raise Thor::Error, "Required configuration 'username' missing." unless configuration.key? :username
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 3
9
- version: 0.1.3
8
+ - 4
9
+ version: 0.1.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gabor Ratky