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 +1 -1
- data/confluencer.gemspec +1 -1
- data/lib/confluencer/app.rb +10 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/confluencer.gemspec
CHANGED
data/lib/confluencer/app.rb
CHANGED
@@ -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 => "
|
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
|