conan_deploy 0.0.2 → 0.0.3

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.
@@ -10,19 +10,12 @@ require 'conan/stackato'
10
10
  require 'conan/newrelic'
11
11
 
12
12
  module ManifestBuilder
13
- def self.build(options, pipeline_id, env_id, artifact_repo=nil, &block)
13
+ def self.build(options, pipeline_id, env_id, artifact_repo=nil, outthingy=nil, &block)
14
14
  manifest_dir = options[:directory]
15
15
  output_type = options[:format]
16
16
 
17
-
18
17
  artifact_repo ||= DefaultArtifactRepository.new
19
-
20
- # this is a feature toggle to allow the current property file based impl to be migrated to the stackato output impl
21
- if (output_type == :stackato)
22
- outthingy = StackatoOutThingy.new(manifest_dir)
23
- else
24
- outthingy = PropertiesFileOutThingy.new(manifest_dir)
25
- end
18
+ outthingy ||= StackatoOutThingy.new(manifest_dir)
26
19
 
27
20
  manifest = Manifest.new(options, artifact_repo, outthingy)
28
21
  manifest.instance_eval(&block)
@@ -459,6 +452,10 @@ class Deployment < HasOptions
459
452
  "#{app_id}-#{@environment.id}-#{@ship}"
460
453
  end
461
454
 
455
+ def unique_name(app_id)
456
+ "#{name(app_id)}-#{@randomid}"
457
+ end
458
+
462
459
  def dns_name(app_id)
463
460
  "#{@environment.id}.#{app_id}.#{@ship}.#{@org}.#{@@paas_domain}"
464
461
  end
@@ -467,9 +464,6 @@ class Deployment < HasOptions
467
464
  "#{@environment.id}.#{app_id}.#{@@paas_domain}"
468
465
  end
469
466
 
470
- def unique_name(app_id)
471
- "#{name(app_id)}-#{@randomid}"
472
- end
473
467
 
474
468
  def active_urls(app_id)
475
469
  [ dns_name(app_id), agnostic_dns_name(app_id) ]
data/lib/conan/output.rb CHANGED
@@ -166,4 +166,4 @@ class PropertiesFileOutThingy < OutThingy
166
166
  def writeConfiguration(app, deploy)
167
167
  # noop
168
168
  end
169
- end
169
+ end
data/lib/conan/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Conan
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conan_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-04-09 00:00:00.000000000 Z
13
+ date: 2014-04-10 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: Provision, configure, deploy and never hear da lamantation of da users
16
16
  email: michael.reardon@mtnsat.com