Class: Tuya::System
- Inherits:
-
Object
- Object
- Tuya::System
- Includes:
- Pod::Config::Mixin, Singleton
- Defined in:
- lib/tycli/system.rb
Instance Attribute Summary collapse
-
#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.
21 22 23 24 25 26 |
# File 'lib/tycli/system.rb', line 21 def initialize @user = `id -un`.strip @pod_config = config @group = Tuya::Config.local_config @user end |
Instance Attribute Details
#group ⇒ Object
Returns the value of attribute group.
19 20 21 |
# File 'lib/tycli/system.rb', line 19 def group @group end |
#pod_config ⇒ Object
Returns the value of attribute pod_config.
18 19 20 |
# File 'lib/tycli/system.rb', line 18 def pod_config @pod_config end |
#user ⇒ Object
Returns the value of attribute user.
17 18 19 |
# File 'lib/tycli/system.rb', line 17 def user @user end |
Class Method Details
.lint ⇒ Object
10 11 12 13 14 15 |
# File 'lib/tycli/system.rb', line 10 def self.lint p "current ruby version: #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}" require 'cocoapods' p Pod::VERSION end |