p4util 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0edf6cc773707c1a4980752d791f5411f02d26d
4
- data.tar.gz: 989fb3cc701d1211c69c7f3c64e28325f6381750
3
+ metadata.gz: 586c43946db5fd9db9e797b57ff1a261cd25ac1c
4
+ data.tar.gz: 9dab351d375595f53a487ce8ebc811b4faa6f591
5
5
  SHA512:
6
- metadata.gz: b32a53524ad0e06c7f551ebeb7a8c77ec4da03bfad69880f53fb0e98635fa94642dda0a7a45c4a7582e38a831a0b29fc631f01e9f075fa1decdea31b5139f06b
7
- data.tar.gz: fdad9a5c160ab074d20dda40c8fe9a3d9f7d441d795dbfdadff68c3a54fa8b5c5ac0010d9938101018dc947b1e350f47305e09d3962bc1f648f362dabebf48f7
6
+ metadata.gz: 878e84720955bd6b5ce1747cd855ff2789682f0f60dac3377448a4b2c48eda3e34a8a20899a9f02347289fc2582086033e96c4c27783940126e6f3fc90d20c38
7
+ data.tar.gz: 2843671a88047faf5be6133c1d0dc740f940b11f56bde5746a55f0e054a103175875a13f705c932707786286c45389394ff228cd7c94a83deae13b3e1ea8f03c
@@ -89,7 +89,14 @@ module Commands
89
89
  p4.connect
90
90
  p4.exception_level = P4::RAISE_ERRORS
91
91
 
92
- system_settings.execute(p4, super_user)
92
+ if system_settings
93
+ system_settings.execute(p4, super_user)
94
+ else
95
+ p4.user = super_user.login
96
+ p4.password = super_user.password
97
+ login = p4.run_login
98
+ puts "login results for super #{login}"
99
+ end
93
100
 
94
101
  models.each { |m| m.execute(p4, models, super_user) }
95
102
  end
@@ -47,6 +47,7 @@ module Commands
47
47
  # established here with whatever credentials we end up with the super
48
48
  # user as.
49
49
  def execute(p4, super_user)
50
+ puts 'initializing system settings'
50
51
  set_unicode_mode(p4)
51
52
  set_security_and_super_user(p4, super_user)
52
53
  create_default_protections(p4)
@@ -1,3 +1,3 @@
1
1
  module P4Util
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: p4util
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Juricek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -121,3 +121,4 @@ specification_version: 4
121
121
  summary: The p4util command line app eases setup of Perforce instances, mostly for
122
122
  testing.
123
123
  test_files: []
124
+ has_rdoc: