Domain_Handler 0.0.11 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/domain_handler.rb +5 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 149c47e3e17b26cce807e3d6dd061ec9e471fc0cb1ffccfb735721fcb415ac55
4
- data.tar.gz: 1a070b4c734374f957df6f40bdcb88ae9183879a2b2d250d3aca1ecc1b119bcc
3
+ metadata.gz: d79a2dff9b9b2e938dd63a0b909a5d85cf01969c941f34500989b3b9b58e08e6
4
+ data.tar.gz: 725edf6b3c9f1edef09db3745c68345467d9e57d641d61d99113318583b232d3
5
5
  SHA512:
6
- metadata.gz: 4c127ef321c4b4592884716071abcd3d847cf04722cc75f6cff1375065f79f2908f41039faeb2b7f04291f17c7abbabc204d35fc9537f90674f1dadb35f881ae
7
- data.tar.gz: 1a36b8c038dc3783e27fe80e2e71297da27afc6952fc10608776f107af3c385db2bff97d9dac783752ffa37af3e66da719eeab24fd418ee3f1b2eeda9d792185
6
+ metadata.gz: 91e104080c6075c3da6ffa46c18de476bb87a606334710c5449fb5b747dccadb040479f48eb54b9cba2f47e1cb95b8c963b2eaea1735904da327039af5a405f5
7
+ data.tar.gz: 8d926133458a87e5fb33be4fea98688362a2702159baf83f1491d6c843d6a79c155cc9e79ac66cf9262268bfb5b364501972adb0cf5b61c7a219aee10f753ff7
@@ -76,20 +76,16 @@ class DomainHandler
76
76
  database: ENV['DB_NAME'],
77
77
  username: ENV['DB_USER'],
78
78
  password: ENV['DB_PWD'],
79
- host: ENV['HOST_DOMAIN_URL'],
79
+ host: 'localhost',
80
80
  adapter: ENV['DB_ADAPTER']
81
81
  )
82
82
 
83
- # Define your migration class
84
- migration = CreateDomains.new
85
-
86
- # Create an instance of your migration class
87
- migration = CreateDomains.new
88
- # Generate the migration file
89
83
  timestamp = Time.now.utc.strftime("%Y%m%d%H%M%S")
90
84
  migration_file = "db/migrate/#{timestamp}_create_domains.rb"
91
- generator = Rails::Generators::MigrationGenerator.new(['create_your_table'], destination_root: File.expand_path('db/migrate'))
92
- generator.create_migration(migration_file, 'create_domains')
85
+ # Use the MigrationGenerator class to generate the migration file
86
+ generator = Rails::Generators::MigrationGenerator.new(['create_domains'])
87
+ generator.create_migration_file(migration_file)
88
+ puts "Migration file generated: #{migration_file}"
93
89
  end
94
90
  end
95
91
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Domain_Handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arun Sahu