bin_install 0.0.17 → 0.0.18

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
  SHA256:
3
- metadata.gz: 8dccf599eec32c7878d456470520dd65a209ed014d2e4011a99d69d0a502d2c4
4
- data.tar.gz: 5c648939f73958d3b5c0e5209dd6fa5217d625b8d1c0b9d9937da455a432b518
3
+ metadata.gz: e70c8c565cb91c55cbb37a2309a61e50dbb1322806387e8dd92ce8b7d6a4da62
4
+ data.tar.gz: 75cd84fa2594a70ca8ab80bce616447c35bb9e7c0c50273fe23a11de38508280
5
5
  SHA512:
6
- metadata.gz: 9ef5c49d0cd8ec0884d0305477a66fbb9710b389356aebca306b6a007ce07bf027660fc8c4ab7d3beabd800f8374283b9fe91aeda6944bce08edecf2a1e7f50a
7
- data.tar.gz: 96e726e24a63c8aa311c046612e8e81fca48d06e93a797cb4d304eb1799c37ed5c67e83f443658340b75ca7316f847b051dafdef32d57721ce8d58efb0b80a8d
6
+ metadata.gz: 837e7c5a4e19fac173ae250a902168a9baacce3ef313a01c91c5d6ba645e9c9b34b5ec39fd820cf304d4bb2752c5c81ac6fa91c70e9d578eb27adf044ae9bc8c
7
+ data.tar.gz: 326380bd002ad1ce25eb6cfac03904bb92744282d39cc3cb22f8b9b5c70996e09bc72af611f92de109a3936d5fd206124746d730c2aa418445a56c0e0ddc6d55
@@ -13,19 +13,23 @@ module BinInstall
13
13
  end
14
14
 
15
15
  def self.create_root
16
+ puts 'Creating root user for MySQL....'.white
16
17
  system("mysqladmin --user=root password ''")
17
18
  end
18
19
 
19
20
  def self.create_root!
21
+ puts 'Creating root user for MySQL....'.white
20
22
  BinInstall.system!("mysqladmin --user=root password ''")
21
23
  end
22
24
 
23
25
  def self.create_user(username, password = nil)
26
+ puts "Creating user #{username} for MySQL...".white
24
27
  system(%(mysql --user=root --execute="CREATE USER '#{username}'@'localhost' IDENTIFIED BY '#{password}';"))
25
28
  system(%(mysql --user=root --execute="GRANT ALL PRIVILEGES ON *.* TO '#{username}'@'localhost' WITH GRANT OPTION;"))
26
29
  end
27
30
 
28
31
  def self.create_user!(username, password = nil)
32
+ puts "Creating user #{username} for MySQL...".white
29
33
  BinInstall.system!(%(mysql --user=root --execute="CREATE USER '#{username}'@'localhost' IDENTIFIED BY '#{password}';"))
30
34
  BinInstall.system!(%(mysql --user=root --execute="GRANT ALL PRIVILEGES ON *.* TO '#{username}'@'localhost' WITH GRANT OPTION;"))
31
35
  end
@@ -11,18 +11,22 @@ module BinInstall
11
11
  end
12
12
 
13
13
  def self.create_superuser(username = 'postgres')
14
+ puts 'Creating superuser postgres for postgresqlSQL...'.whtie
14
15
  system("createuser --superuser #{username}")
15
16
  end
16
17
 
17
18
  def self.create_superuser!(username = 'postgres')
19
+ puts 'Creating superuser postgres for PostgreSQL...'.white
18
20
  BinInstall.system!("createuser --superuser #{username}")
19
21
  end
20
22
 
21
23
  def self.create_user(username = 'postgres')
24
+ puts "Creating user #{username} for PostgreSQL".white
22
25
  system("createuser #{username}")
23
26
  end
24
27
 
25
28
  def self.create_user!(username = 'postgres')
29
+ puts "Creating user #{username} for PostgreSQL".white
26
30
  BinInstall.system!("createuser #{username}")
27
31
  end
28
32
 
@@ -1,3 +1,3 @@
1
1
  module BinInstall
2
- VERSION = '0.0.17'.freeze
2
+ VERSION = '0.0.18'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bin_install
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Singer