Class: Tuya::System
- Inherits:
-
Object
- Object
- Tuya::System
- Includes:
- Pod::Config::Mixin, Singleton
- Defined in:
- lib/tuya/cli/odm/system.rb
Instance Attribute Summary collapse
-
#gitlab_config ⇒ Object
Returns the value of attribute gitlab_config.
-
#group ⇒ Object
Returns the value of attribute group.
-
#pod_config ⇒ Object
Returns the value of attribute pod_config.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ System
constructor
A new instance of System.
Constructor Details
#initialize ⇒ System
Returns a new instance of System.
16 17 18 19 20 21 |
# File 'lib/tuya/cli/odm/system.rb', line 16 def initialize @user = ENV["HOME"] @pod_config = config @group = Tuya::Config.local_config @user end |
Instance Attribute Details
#gitlab_config ⇒ Object
Returns the value of attribute gitlab_config.
14 15 16 |
# File 'lib/tuya/cli/odm/system.rb', line 14 def gitlab_config @gitlab_config end |
#group ⇒ Object
Returns the value of attribute group.
13 14 15 |
# File 'lib/tuya/cli/odm/system.rb', line 13 def group @group end |
#pod_config ⇒ Object
Returns the value of attribute pod_config.
12 13 14 |
# File 'lib/tuya/cli/odm/system.rb', line 12 def pod_config @pod_config end |
#user ⇒ Object
Returns the value of attribute user.
11 12 13 |
# File 'lib/tuya/cli/odm/system.rb', line 11 def user @user end |
Class Method Details
.lint ⇒ Object
6 7 8 9 |
# File 'lib/tuya/cli/odm/system.rb', line 6 def self.lint puts "current ruby version: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}".green puts Pod::VERSION end |