instapusher 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/instapusher/commands.rb +3 -4
- data/lib/instapusher/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d2d1ee9ba82bc77c8f8498e2d37025d39654d67
|
4
|
+
data.tar.gz: 33a4da2628bf95cd8033bf516c18ce7557895e78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcf6faf925bb70c237d5775826960462eb94990c7174ed1eebd39d70a9a021a5d2dd5b6a84d5c8660e3f1b187e76f20365155d12dac04467efbfb50c743b1e5e
|
7
|
+
data.tar.gz: 0ba780cd739c502d5f57cd8e75691f63cdcc2dee750b161ada5c9c19183374c2a1d9f56920a8dacbbcccb28e1b4810ff7e4ac6412a7a64d2524f627da4698b57
|
data/lib/instapusher/commands.rb
CHANGED
@@ -5,12 +5,11 @@ require 'uri'
|
|
5
5
|
module Instapusher
|
6
6
|
class Commands
|
7
7
|
|
8
|
-
attr_reader :debug, :api_key, :branch_name, :project_name
|
8
|
+
attr_reader :debug, :api_key, :branch_name, :project_name, :staging
|
9
9
|
|
10
10
|
def initialize init_options = {}
|
11
11
|
@debug = init_options[:debug]
|
12
|
-
@
|
13
|
-
@local = init_options[:local]
|
12
|
+
@staging = init_options[:staging]
|
14
13
|
|
15
14
|
git = Git.new
|
16
15
|
@branch_name = init_options[:project_name] || ENV['INSTAPUSHER_BRANCH'] || git.current_branch
|
@@ -39,8 +38,8 @@ module Instapusher
|
|
39
38
|
{ project: project_name,
|
40
39
|
branch: branch_name,
|
41
40
|
owner: Git.new.repo_owner,
|
42
|
-
local: @local,
|
43
41
|
version: VERSION,
|
42
|
+
staging: @staging,
|
44
43
|
api_key: api_key }
|
45
44
|
end
|
46
45
|
end
|
data/lib/instapusher/version.rb
CHANGED