bigpanda 0.1.1 → 0.1.2

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b298817cdf964e8f8f4c299f8d890bcf3d6a608e
4
+ data.tar.gz: 315921579ae6c06bcd10db9c4e1d39310d8bc504
5
+ SHA512:
6
+ metadata.gz: a2435d3a2cdb7594df7062d6c94064f15f143394b326ddd6a7741173c5a5ce5f882280e8dcf54e7a497907155d3fed0fc4a3269b20a4fbc7062ad3df42999498
7
+ data.tar.gz: 617f3d9d04181932844a59ed567b288e7a34c9f802f156f1c588e1f96fd39b47b1786942309db654f88a3b83cbd83d3af12c6aacf796ff5d666ed6b08e2deeb5
@@ -4,7 +4,7 @@ require 'net/https'
4
4
 
5
5
  module BigPanda
6
6
 
7
- VERSION = '0.1.0'
7
+ VERSION = '0.1.2'
8
8
 
9
9
  DEFAULT_CONFIG_FILES = [ "/etc/bigpanda.yaml", "/etc/bigpanda.yml" ]
10
10
  DEFAULT_CONFIGURATION = { # overridable via the configuration file
@@ -96,6 +96,11 @@ module BigPanda
96
96
  if options.has_key?(:hosts)
97
97
  options[:hosts] = options[:hosts].kind_of?(Array) ? options[:hosts] : [options[:hosts]]
98
98
  end
99
+
100
+ unless options.has_key?(:source_system)
101
+ options[:source_system] = "ruby"
102
+ end
103
+
99
104
  end
100
105
 
101
106
  # Read configuration from the default list of configuration files and the received file.
@@ -30,7 +30,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
30
30
  # Map capistrano execution variables to BigPanda Fields for deployment start
31
31
  #
32
32
  # == Parameters:
33
- # optional Hash which can contain all propriatery fields
33
+ # optional Hash which can contain all proprietary fields
34
34
  #
35
35
  def send_deployment_start(properties = {})
36
36
  panda = create_bigpanda_client
@@ -40,7 +40,8 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
40
40
  :hosts => find_servers_for_task(current_task),
41
41
  :env => rails_env,
42
42
  :owner => fetch(:bigpanda_owner, nil),
43
- :properties => properties
43
+ :properties => properties,
44
+ :source_system: "capistrano"
44
45
  })
45
46
  rescue Exception => e
46
47
  logger.important "err :: while sending BigPanda start, Skipping to next command. #{e.message}"
@@ -49,7 +50,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
49
50
  # Map capistrano execution variables to BigPanda Fields for deployment end
50
51
  #
51
52
  # == Parameters:
52
- # optional Hash which can contain all propriatery fields
53
+ # optional Hash which can contain all proprietary fields
53
54
  #
54
55
  def send_deployment_end(status, properties = {})
55
56
  panda = create_bigpanda_client
@@ -69,7 +70,7 @@ Capistrano::Configuration.instance(:must_exist).load do |config|
69
70
 
70
71
 
71
72
  def create_bigpanda_client
72
- BigPanda::Client.new(:access_token => fetch(:bigpanda_access_token, nil))
73
+ BigPanda::Client.new(:access_token => fetch(:bigpanda_access_token, nil), :target_url => fetch(:bigpanda_target_url, "https://api.bigpanda.io"))
73
74
  end
74
75
 
75
76
 
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigpanda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - BigPanda
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-21 00:00:00.000000000 Z
11
+ date: 2014-06-15 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: json
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: A Ruby client (and additional integrations) for BigPanda's API
@@ -34,31 +31,30 @@ extensions: []
34
31
  extra_rdoc_files: []
35
32
  files:
36
33
  - lib/bigpanda.rb
37
- - lib/bigpanda/capistrano.rb
38
34
  - lib/bigpanda/bp-api.rb
35
+ - lib/bigpanda/capistrano.rb
39
36
  homepage: https://github.com/bigpandaio/bigpanda-rb
40
37
  licenses:
41
38
  - MIT
39
+ metadata: {}
42
40
  post_install_message:
43
41
  rdoc_options: []
44
42
  require_paths:
45
43
  - lib
46
44
  required_ruby_version: !ruby/object:Gem::Requirement
47
- none: false
48
45
  requirements:
49
- - - ! '>='
46
+ - - '>='
50
47
  - !ruby/object:Gem::Version
51
48
  version: '0'
52
49
  required_rubygems_version: !ruby/object:Gem::Requirement
53
- none: false
54
50
  requirements:
55
- - - ! '>='
51
+ - - '>='
56
52
  - !ruby/object:Gem::Version
57
53
  version: '0'
58
54
  requirements: []
59
55
  rubyforge_project:
60
- rubygems_version: 1.8.24
56
+ rubygems_version: 2.3.0
61
57
  signing_key:
62
- specification_version: 3
58
+ specification_version: 4
63
59
  summary: A Ruby client (and additional integrations) for BigPanda's API
64
60
  test_files: []