combat 0.9.6 → 0.9.7

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/lib/combat.rb CHANGED
@@ -36,7 +36,8 @@ class Combat < Thor
36
36
  :host => defaults[:host] || 'my.hostname.com',
37
37
  :path => defaults[:path] || '/var/www/my.hostname.com/deploy_folder',
38
38
  :url => defaults[:url] || 'http://my.hostname.com/deploy_folder',
39
- :remote_user => defaults[:remote_user] || 'www-data'
39
+ :remote_user => defaults[:remote_user] || 'www-data',
40
+ :enterprise => true
40
41
  }
41
42
 
42
43
  unless File.exists?(COMBAT_CONFIG_FILE)
@@ -65,7 +66,7 @@ class Combat < Thor
65
66
  system "ssh #{@config.user_and_host} 'rm -fr #{@config.path}/*'"
66
67
 
67
68
  if @config.type == 'iphone'
68
- system "scp deployed/#{@config.provision_file_name} #{@config.user_and_host}:#{@config.path}"
69
+ system "scp deployed/#{@config.provision_file_name} #{@config.user_and_host}:#{@config.path}" unless @config.is_enterprise
69
70
  system "scp deployed/#{@config.plist_file} #{@config.user_and_host}:#{@config.path}"
70
71
  system "scp deployed/#{@config.ipa_file} #{@config.user_and_host}:#{@config.path}"
71
72
  else
data/lib/settings.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Settings
2
- attr_accessor :name, :url, :path, :filename, :plist_file, :provision_file_name, :remote_user, :host, :type, :template_file, :ipa_file
2
+ attr_accessor :name, :url, :path, :filename, :plist_file, :provision_file_name, :remote_user, :host, :type, :template_file, :ipa_file, :is_enterprise
3
3
  attr_accessor :deployed_at, :icon_source_path, :icon_path
4
4
 
5
5
  def initialize(options)
@@ -11,6 +11,7 @@ class Settings
11
11
  @path = options[:path]
12
12
  @type = options[:type]
13
13
  @remote_user = options[:remote_user]
14
+ @is_enterprise = options[:enterprise]
14
15
 
15
16
  if @filename.nil? || @filename.empty?
16
17
  @filename = @name.gsub(" ", "_")
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Combat
2
- VERSION = '0.9.6'
2
+ VERSION = '0.9.7'
3
3
  end
@@ -94,12 +94,14 @@
94
94
  </p>
95
95
  <ol>
96
96
  <% if @type == 'iphone' %>
97
+ <% unless @is_enterprise %>
97
98
  <li>
98
99
  <a href="<%= @provision_file_name %>">
99
100
  Install provisioning file<br/>
100
101
  (only first time)
101
102
  </a>
102
103
  </li>
104
+ <% end %>
103
105
  <li>
104
106
  <a href="itms-services://?action=download-manifest&url=<%= @plist_file_url %>">
105
107
  Install <%= @name %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: combat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-05 00:00:00.000000000Z
12
+ date: 2012-05-16 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Deploy your iPhone and Android apps to clients with ease. It's like Capistrano,
15
15
  only for mobile apps.