Sha256: 61435689ec5dfec193b815f45923c872788acaaab0a873651e9e8dcc94d36016

Contents?: true

Size: 780 Bytes

Versions: 7

Compression:

Stored size: 780 Bytes

Contents

module PowerStencil
  module SystemEntityDefinitions

    module EntityProjectCommon

      def save(uri = source_uri, force_files_generation: false)
        super(uri)
        unless PowerStencil.project.entity_type_templates[type].nil?
          PowerStencil.project.generate_entity_dir_for_entity self, force: force_files_generation
        end
        self
      end

      def delete(force_files_deletion: false)
        unless PowerStencil.project.entity_type_templates[type].nil?
          PowerStencil.project.delete_entity_dir_for_entity self, force: force_files_deletion
        end
        super()
        self
      end

      def buildable_by
        self.class.buildable_by
      end

      def buildable?
        self.class.buildable?
      end

    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
power_stencil-0.3.6 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.5 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.4 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.3 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.2 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.1 lib/power_stencil/system_entity_definitions/entity_project_common.rb
power_stencil-0.3.0 lib/power_stencil/system_entity_definitions/entity_project_common.rb